SS
Если конечно спрашивают не теоретически «как» а настоящую реализацию
Size: a a a
SS
Б
Б
SS
DA
Б
from functools import partial
class classmethod:
def __init__(fn):
self.fn = fn
def __get__(self, instance, owner):
return partial(self.fn, owner)
DA
from functools import partial
class classmethod:
def __init__(fn):
self.fn = fn
def __get__(self, instance, owner):
return partial(self.fn, owner)
Б
Б
from functools import partial
class classmethod:
def __init__(fn):
self.fn = fn
def __get__(self, instance, owner):
return partial(self.fn, owner)
MK
MK
from functools import partial
class classmethod:
def __init__(fn):
self.fn = fn
def __get__(self, instance, owner):
return partial(self.fn, owner)
Б
DB
MK
Б
MK
DB
disallow_untyped_defs = True
MK
MK
DB
show_error_codes = True
pretty = True
disallow_untyped_defs = True
warn_redundant_casts = True
strict_equality = True
disallow_untyped_calls = True
warn_return_any = True
warn_unreachable = True
warn_unused_configs = True