mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 01:53:24 +08:00
Use Incomplete instead of Any in __getattr__ (#8903)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user