-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add strict_override_decorator option (PEP 698)
- Loading branch information
Showing
8 changed files
with
147 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
TypeVar = 0 | ||
Generic = 0 | ||
Any = 0 | ||
overload = 0 | ||
Type = 0 | ||
Literal = 0 | ||
Optional = 0 | ||
Self = 0 | ||
Tuple = 0 | ||
ClassVar = 0 | ||
|
||
T = TypeVar('T') | ||
T_co = TypeVar('T_co', covariant=True) | ||
KT = TypeVar('KT') | ||
|
||
class Iterable(Generic[T_co]): pass | ||
class Iterator(Iterable[T_co]): pass | ||
class Sequence(Iterable[T_co]): pass | ||
class Mapping(Iterable[KT], Generic[KT, T_co]): | ||
def keys(self) -> Iterable[T]: pass # Approximate return type | ||
def __getitem__(self, key: T) -> T_co: pass | ||
|
||
|
||
def override(__arg: T) -> T: ... |