Use Incomplete instead of Any in __getattr__ (#8903)

This commit is contained in:
Nikita Sobolev authored and GitHub committed 2022-10-15 18:54:21 +01:00
1 parent ed4bc2b2e6
commit ce4668a132
64 files changed
+157 -132

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import logging
from _typeshed import Incomplete
from typing import Any
from .s3.connection import S3Connection
@@ -102,4 +103,4 @@ def storage_uri(
def storage_uri_for_key(key): ...
# Explicitly mark this package as incomplete.
def __getattr__(name: str) -> Any: ...
def __getattr__(name: str) -> Incomplete: ...
+2 -1
View File
@@ -1,3 +1,4 @@
from _typeshed import Incomplete
from typing import Any
RegionData: Any
@@ -7,4 +8,4 @@ def connect_to_region(region_name, **kw_params): ...
def get_region(region_name, **kw_params): ...
# Explicitly mark this package as incomplete.
def __getattr__(name: str) -> Any: ...
def __getattr__(name: str) -> Incomplete: ...