Upgrade pyright, improve pyright config files (#8072)

This commit is contained in:
Alex Waygood
2022-06-16 18:50:50 +01:00
committed by GitHub
parent a2ef47660a
commit 6b0c8df9ec
12 changed files with 59 additions and 29 deletions

View File

@@ -49,7 +49,10 @@ class Preprocess(IterateMappersMixin):
class PostSortRec:
disabled: Any
def __new__(cls, uow, *args): ...
# At runtime __new__ is defined, not __init__,
# But if we define __new__ here then all subclasses are identified by pyright
# as having __init__ methods that are inconsistent with their __new__ methods
def __init__(self, uow, *args) -> None: ...
def execute_aggregate(self, uow, recs) -> None: ...
class ProcessAll(IterateMappersMixin, PostSortRec):

View File

@@ -7,7 +7,6 @@ class SupportsCloneAnnotations(SupportsAnnotations): ...
class SupportsWrappingAnnotations(SupportsAnnotations): ...
class Annotated:
def __new__(cls, *args): ...
__dict__: Any
def __init__(self, element, values) -> None: ...
def __reduce__(self): ...