mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Upgrade pyright, improve pyright config files (#8072)
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user