mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Add __hash__ for a bunch of types that set it to None (#13286)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from collections.abc import Sequence
|
||||
from types import CodeType
|
||||
from typing import Any, final
|
||||
from typing import Any, ClassVar, final
|
||||
|
||||
def expr(source: str) -> STType: ...
|
||||
def suite(source: str) -> STType: ...
|
||||
@@ -17,6 +17,7 @@ class ParserError(Exception): ...
|
||||
|
||||
@final
|
||||
class STType:
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
def compile(self, filename: StrOrBytesPath = ...) -> CodeType: ...
|
||||
def isexpr(self) -> bool: ...
|
||||
def issuite(self) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user