Skip to content

Instantly share code, notes, and snippets.

View frodo821's full-sized avatar
:octocat:
Working from home

frodo821

:octocat:
Working from home
View GitHub Profile
@frodo821
frodo821 / propositions.py
Last active April 15, 2021 12:41
真理計算ができるだけのスクリプト
from abc import ABC, abstractmethod
class Proposition(ABC):
def __and__(self, other):
return CompositeProposition('and', self, other)
def __or__(self, other):
return CompositeProposition('or', self, other)
[style]
based_on_style = "google"
column_limit = 120
indent_width = 2
continuation_indent_width = 2
split_before_closing_bracket = true
split_before_first_argument = true
dedent_closing_brackets = true
coalesce_brackets = true