mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use Incomplete instead of Any in __getattr__ (#8903)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from codecs import CodecInfo
|
||||
from typing import Any
|
||||
|
||||
class CodecRegistryError(LookupError, SystemError): ...
|
||||
|
||||
@@ -7,4 +7,4 @@ def normalize_encoding(encoding: str | bytes) -> str: ...
|
||||
def search_function(encoding: str) -> CodecInfo | None: ...
|
||||
|
||||
# Needed for submodules
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
Reference in New Issue
Block a user