mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Update mypy configuration: no_implicit_optional = True
(#9742)
This commit is contained in:
parent
4609e58970
commit
e2b8a90897
10 changed files with 21 additions and 11 deletions
|
@ -60,7 +60,7 @@ class ConstantProperty(Generic[T, V]):
|
|||
|
||||
constant = attr.ib() # type: V
|
||||
|
||||
def __get__(self, obj: Optional[T], objtype: Type[T] = None) -> V:
|
||||
def __get__(self, obj: Optional[T], objtype: Optional[Type[T]] = None) -> V:
|
||||
return self.constant
|
||||
|
||||
def __set__(self, obj: Optional[T], value: V):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue