Lines Matching refs:value

586         # If init=False and no default value, then the field won't be
612 # the_fields is a tuple of 3 items, each value
674 # We only have a class attribute if a default value is
696 # Can't use a zero-length value.
705 # Nor a non-zero-length value
745 # These 2 instances will share this value of x.
1136 # If a ClassVar has no default value, it should not be set on the class.
1155 # If a ClassVar has a default value, it should be set on the class.
1194 # If an InitVar has no default value, it should not be set on the class.
1213 # If an InitVar has a default value, it should be set on the class.
1355 # it's not called if a value is specified.
1857 def setattr(self, name, value):
1858 calls.append((name, value))
2282 # If the class has __init__, use it no matter the value of
2373 # If the class has __repr__, use it no matter the value of
2417 # If the class has __eq__, use it no matter the value of
2530 def non_bool(value):
2532 if value is None:
2534 if value:
2676 # If frozen or eq is None, then use the default value (do not
2677 # specify any value in the decorator).
2738 assert False, f'unknown value for expected={expected!r}'
2897 def __setattr__(self, name, value):
2898 self.__dict__['x'] = value * 2
2923 # also have a default value (of type
3307 # Now test with a default value and init=False, which is the
3388 value = c.i
3437 def __set__(self, instance: Any, value: int) -> None:
3438 instance._x = value
3458 def __set__(self, instance: Any, value: int) -> None:
3459 instance._x = value
3863 # Make sure y gets the default value.