diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index b24a9abf2af3..7448dd51a48c 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -24,7 +24,7 @@ "stdlib/tkinter/scrolledtext.pyi", "stdlib/tkinter/tix.pyi", "stdlib/tkinter/ttk.pyi", - "stubs/aiofiles/aiofiles/tempfile/temptypes.pyi", + "stubs/aiofiles", "stubs/antlr4-python3-runtime", "stubs/auth0-python", "stubs/Authlib", @@ -62,6 +62,7 @@ "stubs/ldap3", "stubs/m3u8", "stubs/Markdown", + "stubs/mock/mock/mock.pyi", "stubs/mysqlclient", "stubs/netaddr/netaddr/core.pyi", "stubs/netaddr/netaddr/ip/__init__.pyi", @@ -69,6 +70,8 @@ "stubs/networkx", "stubs/oauthlib", "stubs/openpyxl", + "stubs/opentracing/opentracing/span.pyi", + "stubs/paramiko/paramiko/_winapi.pyi", "stubs/parsimonious/parsimonious/nodes.pyi", "stubs/passlib", "stubs/peewee", @@ -86,6 +89,7 @@ "stubs/python-dateutil", "stubs/python-http-client", "stubs/python-jose", + "stubs/pytz/pytz/lazy.pyi", "stubs/pywin32", "stubs/pyxdg", "stubs/PyYAML", diff --git a/stubs/Authlib/authlib/integrations/base_client/async_app.pyi b/stubs/Authlib/authlib/integrations/base_client/async_app.pyi index e32e154bc1be..422ba2755dc0 100644 --- a/stubs/Authlib/authlib/integrations/base_client/async_app.pyi +++ b/stubs/Authlib/authlib/integrations/base_client/async_app.pyi @@ -1,16 +1,14 @@ -from _typeshed import Incomplete - from authlib.integrations.base_client.sync_app import OAuth1Base, OAuth2Base __all__ = ["AsyncOAuth1Mixin", "AsyncOAuth2Mixin"] class AsyncOAuth1Mixin(OAuth1Base): - async def request(self, method, url, token: Incomplete | None = None, **kwargs): ... - async def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ... - async def fetch_access_token(self, request_token: Incomplete | None = None, **kwargs): ... + async def request(self, method, url, token=None, **kwargs): ... + async def create_authorization_url(self, redirect_uri=None, **kwargs): ... + async def fetch_access_token(self, request_token=None, **kwargs): ... class AsyncOAuth2Mixin(OAuth2Base): async def load_server_metadata(self): ... - async def request(self, method, url, token: Incomplete | None = None, **kwargs): ... - async def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ... - async def fetch_access_token(self, redirect_uri: Incomplete | None = None, **kwargs): ... + async def request(self, method, url, token=None, **kwargs): ... + async def create_authorization_url(self, redirect_uri=None, **kwargs): ... + async def fetch_access_token(self, redirect_uri=None, **kwargs): ... diff --git a/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi b/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi index 1a18fe689f9d..24a8c634ad98 100644 --- a/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi +++ b/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi @@ -1,8 +1,6 @@ -from _typeshed import Incomplete - __all__ = ["AsyncOpenIDMixin"] class AsyncOpenIDMixin: async def fetch_jwk_set(self, force: bool = False): ... async def userinfo(self, **kwargs): ... - async def parse_id_token(self, token, nonce, claims_options: Incomplete | None = None): ... + async def parse_id_token(self, token, nonce, claims_options=None): ... diff --git a/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi b/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi index dbf68a324fda..c6252514276e 100644 --- a/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi +++ b/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi @@ -4,10 +4,10 @@ class FrameworkIntegration: expires_in: int name: Incomplete cache: Incomplete - def __init__(self, name, cache: Incomplete | None = None) -> None: ... + def __init__(self, name, cache=None) -> None: ... def get_state_data(self, session, state): ... def set_state_data(self, session, state, data): ... def clear_state_data(self, session, state): ... - def update_token(self, token, refresh_token: Incomplete | None = None, access_token: Incomplete | None = None) -> None: ... + def update_token(self, token, refresh_token=None, access_token=None) -> None: ... @staticmethod def load_config(oauth, name, params) -> None: ... diff --git a/stubs/Authlib/authlib/integrations/base_client/registry.pyi b/stubs/Authlib/authlib/integrations/base_client/registry.pyi index b9cd8de7ce6e..24c1f415c99a 100644 --- a/stubs/Authlib/authlib/integrations/base_client/registry.pyi +++ b/stubs/Authlib/authlib/integrations/base_client/registry.pyi @@ -11,9 +11,7 @@ class BaseOAuth: cache: Incomplete fetch_token: Incomplete update_token: Incomplete - def __init__( - self, cache: Incomplete | None = None, fetch_token: Incomplete | None = None, update_token: Incomplete | None = None - ) -> None: ... + def __init__(self, cache=None, fetch_token=None, update_token=None) -> None: ... def create_client(self, name): ... def register(self, name, overwrite: bool = False, **kwargs): ... def generate_client_kwargs(self, name, overwrite, **kwargs): ... diff --git a/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi b/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi index 2497632afb47..748cd7b0fc38 100644 --- a/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi +++ b/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi @@ -3,7 +3,7 @@ from _typeshed import Incomplete class BaseApp: client_cls: Incomplete OAUTH_APP_CONFIG: Incomplete - def request(self, method, url, token: Incomplete | None = None, **kwargs): ... + def request(self, method, url, token=None, **kwargs): ... def get(self, url, **kwargs): ... def post(self, url, **kwargs): ... def patch(self, url, **kwargs): ... @@ -29,26 +29,26 @@ class OAuth1Base: def __init__( self, framework, - name: Incomplete | None = None, - fetch_token: Incomplete | None = None, - client_id: Incomplete | None = None, - client_secret: Incomplete | None = None, - request_token_url: Incomplete | None = None, - request_token_params: Incomplete | None = None, - access_token_url: Incomplete | None = None, - access_token_params: Incomplete | None = None, - authorize_url: Incomplete | None = None, - authorize_params: Incomplete | None = None, - api_base_url: Incomplete | None = None, - client_kwargs: Incomplete | None = None, - user_agent: Incomplete | None = None, + name=None, + fetch_token=None, + client_id=None, + client_secret=None, + request_token_url=None, + request_token_params=None, + access_token_url=None, + access_token_params=None, + authorize_url=None, + authorize_params=None, + api_base_url=None, + client_kwargs=None, + user_agent=None, **kwargs, ) -> None: ... class OAuth1Mixin(_RequestMixin, OAuth1Base): - def request(self, method, url, token: Incomplete | None = None, **kwargs): ... - def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ... - def fetch_access_token(self, request_token: Incomplete | None = None, **kwargs): ... + def request(self, method, url, token=None, **kwargs): ... + def create_authorization_url(self, redirect_uri=None, **kwargs): ... + def fetch_access_token(self, request_token=None, **kwargs): ... class OAuth2Base: client_cls: Incomplete @@ -68,26 +68,26 @@ class OAuth2Base: def __init__( self, framework, - name: Incomplete | None = None, - fetch_token: Incomplete | None = None, - update_token: Incomplete | None = None, - client_id: Incomplete | None = None, - client_secret: Incomplete | None = None, - access_token_url: Incomplete | None = None, - access_token_params: Incomplete | None = None, - authorize_url: Incomplete | None = None, - authorize_params: Incomplete | None = None, - api_base_url: Incomplete | None = None, - client_kwargs: Incomplete | None = None, - server_metadata_url: Incomplete | None = None, - compliance_fix: Incomplete | None = None, - client_auth_methods: Incomplete | None = None, - user_agent: Incomplete | None = None, + name=None, + fetch_token=None, + update_token=None, + client_id=None, + client_secret=None, + access_token_url=None, + access_token_params=None, + authorize_url=None, + authorize_params=None, + api_base_url=None, + client_kwargs=None, + server_metadata_url=None, + compliance_fix=None, + client_auth_methods=None, + user_agent=None, **kwargs, ) -> None: ... class OAuth2Mixin(_RequestMixin, OAuth2Base): - def request(self, method, url, token: Incomplete | None = None, **kwargs): ... + def request(self, method, url, token=None, **kwargs): ... def load_server_metadata(self): ... - def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ... - def fetch_access_token(self, redirect_uri: Incomplete | None = None, **kwargs): ... + def create_authorization_url(self, redirect_uri=None, **kwargs): ... + def fetch_access_token(self, redirect_uri=None, **kwargs): ... diff --git a/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi b/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi index 8fa2426a112d..374b3fb9eb63 100644 --- a/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi +++ b/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi @@ -1,7 +1,5 @@ -from _typeshed import Incomplete - class OpenIDMixin: def fetch_jwk_set(self, force: bool = False): ... def userinfo(self, **kwargs): ... - def parse_id_token(self, token, nonce, claims_options: Incomplete | None = None, leeway: int = 120): ... + def parse_id_token(self, token, nonce, claims_options=None, leeway: int = 120): ... def create_load_key(self): ... diff --git a/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi b/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi index df0f388935d9..3d95fa080026 100644 --- a/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi +++ b/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi @@ -9,7 +9,7 @@ class ECDH1PUAlgorithm(JWEAlgorithmWithTagAwareKeyAgreement): description: str key_size: Incomplete aeskw: Incomplete - def __init__(self, key_size: Incomplete | None = None) -> None: ... + def __init__(self, key_size=None) -> None: ... def prepare_key(self, raw_data): ... def generate_preset(self, enc_alg, key): ... def compute_shared_key(self, shared_key_e, shared_key_s): ... @@ -17,10 +17,10 @@ class ECDH1PUAlgorithm(JWEAlgorithmWithTagAwareKeyAgreement): def compute_derived_key(self, shared_key, fixed_info, bit_size): ... def deliver_at_sender(self, sender_static_key, sender_ephemeral_key, recipient_pubkey, headers, bit_size, tag): ... def deliver_at_recipient(self, recipient_key, sender_static_pubkey, sender_ephemeral_pubkey, headers, bit_size, tag): ... - def generate_keys_and_prepare_headers(self, enc_alg, key, sender_key, preset: Incomplete | None = None): ... + def generate_keys_and_prepare_headers(self, enc_alg, key, sender_key, preset=None): ... def agree_upon_key_and_wrap_cek(self, enc_alg, headers, key, sender_key, epk, cek, tag): ... - def wrap(self, enc_alg, headers, key, sender_key, preset: Incomplete | None = None): ... - def unwrap(self, enc_alg, ek, headers, key, sender_key, tag: Incomplete | None = None): ... + def wrap(self, enc_alg, headers, key, sender_key, preset=None): ... + def unwrap(self, enc_alg, ek, headers, key, sender_key, tag=None): ... JWE_DRAFT_ALG_ALGORITHMS: Incomplete diff --git a/stubs/Authlib/authlib/jose/jwk.pyi b/stubs/Authlib/authlib/jose/jwk.pyi index 0ca658ddc97a..79246560f402 100644 --- a/stubs/Authlib/authlib/jose/jwk.pyi +++ b/stubs/Authlib/authlib/jose/jwk.pyi @@ -1,4 +1,2 @@ -from _typeshed import Incomplete - -def loads(obj, kid: Incomplete | None = None): ... -def dumps(key, kty: Incomplete | None = None, **params): ... +def loads(obj, kid=None): ... +def dumps(key, kty=None, **params): ... diff --git a/stubs/Authlib/authlib/jose/rfc7515/jws.pyi b/stubs/Authlib/authlib/jose/rfc7515/jws.pyi index 2fcd024394a0..fbb1083981aa 100644 --- a/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +++ b/stubs/Authlib/authlib/jose/rfc7515/jws.pyi @@ -3,12 +3,12 @@ from _typeshed import Incomplete class JsonWebSignature: REGISTERED_HEADER_PARAMETER_NAMES: Incomplete ALGORITHMS_REGISTRY: Incomplete - def __init__(self, algorithms: Incomplete | None = None, private_headers: Incomplete | None = None) -> None: ... + def __init__(self, algorithms=None, private_headers=None) -> None: ... @classmethod def register_algorithm(cls, algorithm) -> None: ... def serialize_compact(self, protected, payload, key): ... - def deserialize_compact(self, s, key, decode: Incomplete | None = None): ... + def deserialize_compact(self, s, key, decode=None): ... def serialize_json(self, header_obj, payload, key): ... - def deserialize_json(self, obj, key, decode: Incomplete | None = None): ... + def deserialize_json(self, obj, key, decode=None): ... def serialize(self, header, payload, key): ... - def deserialize(self, s, key, decode: Incomplete | None = None): ... + def deserialize(self, s, key, decode=None): ... diff --git a/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi b/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi index 87de596064f1..34e57122b87b 100644 --- a/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +++ b/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi @@ -5,15 +5,15 @@ class JsonWebEncryption: ALG_REGISTRY: Incomplete ENC_REGISTRY: Incomplete ZIP_REGISTRY: Incomplete - def __init__(self, algorithms: Incomplete | None = None, private_headers: Incomplete | None = None) -> None: ... + def __init__(self, algorithms=None, private_headers=None) -> None: ... @classmethod def register_algorithm(cls, algorithm) -> None: ... - def serialize_compact(self, protected, payload, key, sender_key: Incomplete | None = None): ... - def serialize_json(self, header_obj, payload, keys, sender_key: Incomplete | None = None): ... - def serialize(self, header, payload, key, sender_key: Incomplete | None = None): ... - def deserialize_compact(self, s, key, decode: Incomplete | None = None, sender_key: Incomplete | None = None): ... - def deserialize_json(self, obj, key, decode: Incomplete | None = None, sender_key: Incomplete | None = None): ... - def deserialize(self, obj, key, decode: Incomplete | None = None, sender_key: Incomplete | None = None): ... + def serialize_compact(self, protected, payload, key, sender_key=None): ... + def serialize_json(self, header_obj, payload, keys, sender_key=None): ... + def serialize(self, header, payload, key, sender_key=None): ... + def deserialize_compact(self, s, key, decode=None, sender_key=None): ... + def deserialize_json(self, obj, key, decode=None, sender_key=None): ... + def deserialize(self, obj, key, decode=None, sender_key=None): ... @staticmethod def parse_json(obj): ... def get_header_alg(self, header): ... diff --git a/stubs/Authlib/authlib/jose/rfc7516/models.pyi b/stubs/Authlib/authlib/jose/rfc7516/models.pyi index 77879db640b5..794b2aafbd19 100644 --- a/stubs/Authlib/authlib/jose/rfc7516/models.pyi +++ b/stubs/Authlib/authlib/jose/rfc7516/models.pyi @@ -11,14 +11,14 @@ class JWEAlgorithmBase(metaclass=ABCMeta): def generate_preset(self, enc_alg, key) -> None: ... class JWEAlgorithm(JWEAlgorithmBase, metaclass=ABCMeta): - def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None) -> None: ... + def wrap(self, enc_alg, headers, key, preset=None) -> None: ... def unwrap(self, enc_alg, ek, headers, key) -> None: ... class JWEAlgorithmWithTagAwareKeyAgreement(JWEAlgorithmBase, metaclass=ABCMeta): - def generate_keys_and_prepare_headers(self, enc_alg, key, sender_key, preset: Incomplete | None = None) -> None: ... + def generate_keys_and_prepare_headers(self, enc_alg, key, sender_key, preset=None) -> None: ... def agree_upon_key_and_wrap_cek(self, enc_alg, headers, key, sender_key, epk, cek, tag) -> None: ... - def wrap(self, enc_alg, headers, key, sender_key, preset: Incomplete | None = None) -> None: ... - def unwrap(self, enc_alg, ek, headers, key, sender_key, tag: Incomplete | None = None) -> None: ... + def wrap(self, enc_alg, headers, key, sender_key, preset=None) -> None: ... + def unwrap(self, enc_alg, ek, headers, key, sender_key, tag=None) -> None: ... class JWEEncAlgorithm: name: Incomplete diff --git a/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi b/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi index efb320af7c3c..9c2d57f6ca43 100644 --- a/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi +++ b/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi @@ -1,5 +1 @@ -from _typeshed import Incomplete - -def load_pem_key( - raw, ssh_type: Incomplete | None = None, key_type: Incomplete | None = None, password: Incomplete | None = None -): ... +def load_pem_key(raw, ssh_type=None, key_type=None, password=None): ... diff --git a/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi b/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi index ee40b4ee58ec..a2749aadf95e 100644 --- a/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi +++ b/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi @@ -10,9 +10,7 @@ class AsymmetricKey(Key): SSH_PUBLIC_PREFIX: bytes private_key: Incomplete public_key: Incomplete - def __init__( - self, private_key: Incomplete | None = None, public_key: Incomplete | None = None, options: Incomplete | None = None - ) -> None: ... + def __init__(self, private_key=None, public_key=None, options=None) -> None: ... @property def public_only(self): ... def get_op_key(self, operation): ... @@ -26,14 +24,14 @@ class AsymmetricKey(Key): def load_public_key(self) -> None: ... def as_dict(self, is_private: bool = False, **params): ... def as_key(self, is_private: bool = False): ... - def as_bytes(self, encoding: Incomplete | None = None, is_private: bool = False, password: Incomplete | None = None): ... - def as_pem(self, is_private: bool = False, password: Incomplete | None = None): ... - def as_der(self, is_private: bool = False, password: Incomplete | None = None): ... + def as_bytes(self, encoding=None, is_private: bool = False, password=None): ... + def as_pem(self, is_private: bool = False, password=None): ... + def as_der(self, is_private: bool = False, password=None): ... @classmethod - def import_dict_key(cls, raw, options: Incomplete | None = None): ... + def import_dict_key(cls, raw, options=None): ... @classmethod - def import_key(cls, raw, options: Incomplete | None = None): ... + def import_key(cls, raw, options=None): ... @classmethod def validate_raw_key(cls, key): ... @classmethod - def generate_key(cls, crv_or_size, options: Incomplete | None = None, is_private: bool = False) -> AsymmetricKey: ... + def generate_key(cls, crv_or_size, options=None, is_private: bool = False) -> AsymmetricKey: ... diff --git a/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi b/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi index 001944c64841..379b24806eda 100644 --- a/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi +++ b/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi @@ -7,7 +7,7 @@ class Key: PUBLIC_KEY_OPS: Incomplete REQUIRED_JSON_FIELDS: Incomplete options: Incomplete - def __init__(self, options: Incomplete | None = None) -> None: ... + def __init__(self, options=None) -> None: ... @property def tokens(self): ... @property diff --git a/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi b/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi index c386e2d8d856..365e438e3e29 100644 --- a/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +++ b/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi @@ -6,7 +6,7 @@ from authlib.jose.rfc7517 import Key, KeySet class JsonWebKey: JWK_KEY_CLS: Incomplete @classmethod - def generate_key(cls, kty, crv_or_size, options: Incomplete | None = None, is_private: bool = False): ... + def generate_key(cls, kty, crv_or_size, options=None, is_private: bool = False): ... @classmethod def import_key(cls, raw: Mapping[str, object], options: Mapping[str, object] | None = None) -> Key: ... @classmethod diff --git a/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi b/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi index dbdf15be2993..c1aa6adb9da6 100644 --- a/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi +++ b/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi @@ -21,4 +21,4 @@ class ECKey(AsymmetricKey): def dumps_private_key(self): ... def dumps_public_key(self): ... @classmethod - def generate_key(cls, crv: str = "P-256", options: Incomplete | None = None, is_private: bool = False) -> ECKey: ... + def generate_key(cls, crv: str = "P-256", options=None, is_private: bool = False) -> ECKey: ... diff --git a/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi b/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi index ff4fb5cb27a3..b046d71bd697 100644 --- a/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi +++ b/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi @@ -7,7 +7,7 @@ class DirectAlgorithm(JWEAlgorithm): description: str def prepare_key(self, raw_data): ... def generate_preset(self, enc_alg, key): ... - def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ... + def wrap(self, enc_alg, headers, key, preset=None): ... def unwrap(self, enc_alg, ek, headers, key): ... class RSAAlgorithm(JWEAlgorithm): @@ -18,7 +18,7 @@ class RSAAlgorithm(JWEAlgorithm): def __init__(self, name, description, pad_fn) -> None: ... def prepare_key(self, raw_data): ... def generate_preset(self, enc_alg, key): ... - def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ... + def wrap(self, enc_alg, headers, key, preset=None): ... def unwrap(self, enc_alg, ek, headers, key): ... class AESAlgorithm(JWEAlgorithm): @@ -29,7 +29,7 @@ class AESAlgorithm(JWEAlgorithm): def prepare_key(self, raw_data): ... def generate_preset(self, enc_alg, key): ... def wrap_cek(self, cek, key): ... - def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ... + def wrap(self, enc_alg, headers, key, preset=None): ... def unwrap(self, enc_alg, ek, headers, key): ... class AESGCMAlgorithm(JWEAlgorithm): @@ -40,7 +40,7 @@ class AESGCMAlgorithm(JWEAlgorithm): def __init__(self, key_size) -> None: ... def prepare_key(self, raw_data): ... def generate_preset(self, enc_alg, key): ... - def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ... + def wrap(self, enc_alg, headers, key, preset=None): ... def unwrap(self, enc_alg, ek, headers, key): ... class ECDHESAlgorithm(JWEAlgorithm): @@ -50,13 +50,13 @@ class ECDHESAlgorithm(JWEAlgorithm): description: str key_size: Incomplete aeskw: Incomplete - def __init__(self, key_size: Incomplete | None = None) -> None: ... + def __init__(self, key_size=None) -> None: ... def prepare_key(self, raw_data): ... def generate_preset(self, enc_alg, key): ... def compute_fixed_info(self, headers, bit_size): ... def compute_derived_key(self, shared_key, fixed_info, bit_size): ... def deliver(self, key, pubkey, headers, bit_size): ... - def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ... + def wrap(self, enc_alg, headers, key, preset=None): ... def unwrap(self, enc_alg, ek, headers, key): ... def u32be_len_input(s, base64: bool = False): ... diff --git a/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi b/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi index 0a7674138585..1211c58280ae 100644 --- a/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi +++ b/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi @@ -8,7 +8,7 @@ class OctKey(Key): kty: str REQUIRED_JSON_FIELDS: Incomplete raw_key: Incomplete - def __init__(self, raw_key: Incomplete | None = None, options: Incomplete | None = None) -> None: ... + def __init__(self, raw_key=None, options=None) -> None: ... @property def public_only(self): ... def get_op_key(self, operation): ... @@ -18,6 +18,6 @@ class OctKey(Key): @classmethod def validate_raw_key(cls, key): ... @classmethod - def import_key(cls, raw, options: Incomplete | None = None): ... + def import_key(cls, raw, options=None): ... @classmethod - def generate_key(cls, key_size: int = 256, options: Incomplete | None = None, is_private: bool = True): ... + def generate_key(cls, key_size: int = 256, options=None, is_private: bool = True): ... diff --git a/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi b/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi index b2c78670128b..136f1dc00e53 100644 --- a/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi +++ b/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi @@ -16,8 +16,8 @@ class RSAKey(AsymmetricKey): def load_private_key(self): ... def load_public_key(self): ... @classmethod - def generate_key(cls, key_size: int = 2048, options: Incomplete | None = None, is_private: bool = False) -> RSAKey: ... + def generate_key(cls, key_size: int = 2048, options=None, is_private: bool = False) -> RSAKey: ... @classmethod - def import_dict_key(cls, raw, options: Incomplete | None = None): ... + def import_dict_key(cls, raw, options=None): ... def has_all_prime_factors(obj): ... diff --git a/stubs/Authlib/authlib/jose/rfc7519/claims.pyi b/stubs/Authlib/authlib/jose/rfc7519/claims.pyi index fc77d9392b4b..060f627c483c 100644 --- a/stubs/Authlib/authlib/jose/rfc7519/claims.pyi +++ b/stubs/Authlib/authlib/jose/rfc7519/claims.pyi @@ -6,13 +6,13 @@ class BaseClaims(dict[str, Any]): # dict values are key-dependent header: Incomplete options: Incomplete params: Incomplete - def __init__(self, payload, header, options: Incomplete | None = None, params: Incomplete | None = None) -> None: ... + def __init__(self, payload, header, options=None, params=None) -> None: ... # TODO: Adds an attribute for each key in REGISTERED_CLAIMS def __getattr__(self, key: str): ... def get_registered_claims(self) -> dict[str, Incomplete]: ... class JWTClaims(BaseClaims): - def validate(self, now: Incomplete | None = None, leeway: int = 0) -> None: ... + def validate(self, now=None, leeway: int = 0) -> None: ... def validate_iss(self) -> None: ... def validate_sub(self) -> None: ... def validate_aud(self) -> None: ... diff --git a/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi b/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi index 270722ede34f..0494dd418094 100644 --- a/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi +++ b/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi @@ -3,17 +3,10 @@ from _typeshed import Incomplete class JsonWebToken: SENSITIVE_NAMES: Incomplete SENSITIVE_VALUES: Incomplete - def __init__(self, algorithms, private_headers: Incomplete | None = None) -> None: ... + def __init__(self, algorithms, private_headers=None) -> None: ... def check_sensitive_data(self, payload) -> None: ... def encode(self, header, payload, key, check: bool = True): ... - def decode( - self, - s, - key, - claims_cls: Incomplete | None = None, - claims_options: Incomplete | None = None, - claims_params: Incomplete | None = None, - ): ... + def decode(self, s, key, claims_cls=None, claims_options=None, claims_params=None): ... def decode_payload(bytes_payload): ... def prepare_raw_key(raw): ... diff --git a/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi b/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi index 1b938de4ed8b..aea552297898 100644 --- a/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi +++ b/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi @@ -19,6 +19,6 @@ class OKPKey(AsymmetricKey): def load_private_key(self): ... def load_public_key(self): ... def dumps_private_key(self): ... - def dumps_public_key(self, public_key: Incomplete | None = None): ... + def dumps_public_key(self, public_key=None): ... @classmethod - def generate_key(cls, crv: str = "Ed25519", options: Incomplete | None = None, is_private: bool = False) -> OKPKey: ... + def generate_key(cls, crv: str = "Ed25519", options=None, is_private: bool = False) -> OKPKey: ... diff --git a/stubs/Authlib/authlib/oauth1/client.pyi b/stubs/Authlib/authlib/oauth1/client.pyi index a7823d5211e9..32ac22ba735c 100644 --- a/stubs/Authlib/authlib/oauth1/client.pyi +++ b/stubs/Authlib/authlib/oauth1/client.pyi @@ -10,16 +10,16 @@ class OAuth1Client: self, session, client_id, - client_secret: Incomplete | None = None, - token: Incomplete | None = None, - token_secret: Incomplete | None = None, - redirect_uri: Incomplete | None = None, - rsa_key: Incomplete | None = None, - verifier: Incomplete | None = None, + client_secret=None, + token=None, + token_secret=None, + redirect_uri=None, + rsa_key=None, + verifier=None, signature_method="HMAC-SHA1", signature_type="HEADER", force_include_body: bool = False, - realm: Incomplete | None = None, + realm=None, **kwargs, ) -> None: ... @property @@ -30,9 +30,9 @@ class OAuth1Client: def token(self): ... @token.setter def token(self, token) -> None: ... - def create_authorization_url(self, url, request_token: Incomplete | None = None, **kwargs): ... + def create_authorization_url(self, url, request_token=None, **kwargs): ... def fetch_request_token(self, url, **kwargs): ... - def fetch_access_token(self, url, verifier: Incomplete | None = None, **kwargs): ... + def fetch_access_token(self, url, verifier=None, **kwargs): ... def parse_authorization_response(self, url): ... def parse_response_token(self, status_code, text): ... @staticmethod diff --git a/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi b/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi index 62073bb460f4..894cd4646f82 100644 --- a/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi +++ b/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi @@ -9,9 +9,9 @@ class AuthorizationServer(BaseServer): def handle_response(self, status_code, payload, headers) -> None: ... def handle_error_response(self, error): ... def validate_temporary_credentials_request(self, request): ... - def create_temporary_credentials_response(self, request: Incomplete | None = None): ... + def create_temporary_credentials_response(self, request=None): ... def validate_authorization_request(self, request): ... - def create_authorization_response(self, request, grant_user: Incomplete | None = None): ... + def create_authorization_response(self, request, grant_user=None): ... def validate_token_request(self, request): ... def create_token_response(self, request): ... def create_temporary_credential(self, request) -> None: ... diff --git a/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi b/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi index 05e033dbb42c..5a4b54f1efdc 100644 --- a/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi +++ b/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi @@ -21,15 +21,15 @@ class ClientAuth: def __init__( self, client_id, - client_secret: Incomplete | None = None, - token: Incomplete | None = None, - token_secret: Incomplete | None = None, - redirect_uri: Incomplete | None = None, - rsa_key: Incomplete | None = None, - verifier: Incomplete | None = None, + client_secret=None, + token=None, + token_secret=None, + redirect_uri=None, + rsa_key=None, + verifier=None, signature_method="HMAC-SHA1", signature_type="HEADER", - realm: Incomplete | None = None, + realm=None, force_include_body: bool = False, ) -> None: ... def get_oauth_signature(self, method, uri, headers, body): ... diff --git a/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi b/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi index 9c5f35d53b35..7853be8199c0 100644 --- a/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi +++ b/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi @@ -1,11 +1,7 @@ -from _typeshed import Incomplete - from authlib.common.errors import AuthlibHTTPError class OAuth1Error(AuthlibHTTPError): - def __init__( - self, description: Incomplete | None = None, uri: Incomplete | None = None, status_code: Incomplete | None = None - ) -> None: ... + def __init__(self, description=None, uri=None, status_code=None) -> None: ... def get_headers(self): ... class InsecureTransportError(OAuth1Error): diff --git a/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi b/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi index 98bd2f2ba389..266c3f7fb910 100644 --- a/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi +++ b/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - -def prepare_headers(oauth_params, headers: Incomplete | None = None, realm: Incomplete | None = None): ... +def prepare_headers(oauth_params, headers=None, realm=None): ... def prepare_form_encoded_body(oauth_params, body): ... def prepare_request_uri_query(oauth_params, uri): ... diff --git a/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi b/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi index 8279b465dc09..5e459220c58b 100644 --- a/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi +++ b/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - SIGNATURE_HMAC_SHA1: str SIGNATURE_RSA_SHA1: str SIGNATURE_PLAINTEXT: str @@ -7,8 +5,8 @@ SIGNATURE_TYPE_HEADER: str SIGNATURE_TYPE_QUERY: str SIGNATURE_TYPE_BODY: str -def construct_base_string(method, uri, params, host: Incomplete | None = None): ... -def normalize_base_string_uri(uri, host: Incomplete | None = None): ... +def construct_base_string(method, uri, params, host=None): ... +def normalize_base_string_uri(uri, host=None): ... def normalize_parameters(params): ... def generate_signature_base_string(request): ... def hmac_sha1_signature(base_string, client_secret, token_secret): ... diff --git a/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi b/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi index 21696ccac9b9..ed0c1c936359 100644 --- a/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi +++ b/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi @@ -12,7 +12,7 @@ class OAuth1Request: query_params: Incomplete body_params: Incomplete params: Incomplete - def __init__(self, method, uri, body: Incomplete | None = None, headers: Incomplete | None = None) -> None: ... + def __init__(self, method, uri, body=None, headers=None) -> None: ... @property def client_id(self): ... @property diff --git a/stubs/Authlib/authlib/oauth2/auth.pyi b/stubs/Authlib/authlib/oauth2/auth.pyi index c06c35cafdbc..1e4cc2a8b2ae 100644 --- a/stubs/Authlib/authlib/oauth2/auth.pyi +++ b/stubs/Authlib/authlib/oauth2/auth.pyi @@ -9,7 +9,7 @@ class ClientAuth: client_id: Incomplete client_secret: Incomplete auth_method: Incomplete - def __init__(self, client_id, client_secret, auth_method: Incomplete | None = None) -> None: ... + def __init__(self, client_id, client_secret, auth_method=None) -> None: ... def prepare(self, method, uri, headers, body): ... class TokenAuth: @@ -19,6 +19,6 @@ class TokenAuth: token_placement: Incomplete client: Incomplete hooks: Incomplete - def __init__(self, token, token_placement: str = "header", client: Incomplete | None = None) -> None: ... + def __init__(self, token, token_placement: str = "header", client=None) -> None: ... def set_token(self, token) -> None: ... def prepare(self, uri, headers, body): ... diff --git a/stubs/Authlib/authlib/oauth2/base.pyi b/stubs/Authlib/authlib/oauth2/base.pyi index 4359ffb53120..fdf2f1f22504 100644 --- a/stubs/Authlib/authlib/oauth2/base.pyi +++ b/stubs/Authlib/authlib/oauth2/base.pyi @@ -8,13 +8,13 @@ class OAuth2Error(AuthlibHTTPError): redirect_fragment: Incomplete def __init__( self, - description: Incomplete | None = None, - uri: Incomplete | None = None, - status_code: Incomplete | None = None, - state: Incomplete | None = None, - redirect_uri: Incomplete | None = None, + description=None, + uri=None, + status_code=None, + state=None, + redirect_uri=None, redirect_fragment: bool = False, - error: Incomplete | None = None, + error=None, ) -> None: ... def get_body(self): ... - def __call__(self, uri: Incomplete | None = None): ... + def __call__(self, uri=None): ... diff --git a/stubs/Authlib/authlib/oauth2/client.pyi b/stubs/Authlib/authlib/oauth2/client.pyi index 4656ed8f2b28..b9c81298a0f9 100644 --- a/stubs/Authlib/authlib/oauth2/client.pyi +++ b/stubs/Authlib/authlib/oauth2/client.pyi @@ -27,17 +27,17 @@ class OAuth2Client: def __init__( self, session, - client_id: Incomplete | None = None, - client_secret: Incomplete | None = None, - token_endpoint_auth_method: Incomplete | None = None, - revocation_endpoint_auth_method: Incomplete | None = None, - scope: Incomplete | None = None, - state: Incomplete | None = None, - redirect_uri: Incomplete | None = None, - code_challenge_method: Incomplete | None = None, - token: Incomplete | None = None, + client_id=None, + client_secret=None, + token_endpoint_auth_method=None, + revocation_endpoint_auth_method=None, + scope=None, + state=None, + redirect_uri=None, + code_challenge_method=None, + token=None, token_placement: str = "header", - update_token: Incomplete | None = None, + update_token=None, leeway: int = 60, **metadata, ) -> None: ... @@ -47,50 +47,14 @@ class OAuth2Client: def token(self): ... @token.setter def token(self, token) -> None: ... - def create_authorization_url( - self, url, state: Incomplete | None = None, code_verifier: Incomplete | None = None, **kwargs - ): ... + def create_authorization_url(self, url, state=None, code_verifier=None, **kwargs): ... def fetch_token( - self, - url: Incomplete | None = None, - body: str = "", - method: str = "POST", - headers: Incomplete | None = None, - auth: Incomplete | None = None, - grant_type: Incomplete | None = None, - state: Incomplete | None = None, - **kwargs, - ): ... - def token_from_fragment(self, authorization_response, state: Incomplete | None = None): ... - def refresh_token( - self, - url: Incomplete | None = None, - refresh_token: Incomplete | None = None, - body: str = "", - auth: Incomplete | None = None, - headers: Incomplete | None = None, - **kwargs, - ): ... - def ensure_active_token(self, token: Incomplete | None = None): ... - def revoke_token( - self, - url, - token: Incomplete | None = None, - token_type_hint: Incomplete | None = None, - body: Incomplete | None = None, - auth: Incomplete | None = None, - headers: Incomplete | None = None, - **kwargs, - ): ... - def introspect_token( - self, - url, - token: Incomplete | None = None, - token_type_hint: Incomplete | None = None, - body: Incomplete | None = None, - auth: Incomplete | None = None, - headers: Incomplete | None = None, - **kwargs, + self, url=None, body: str = "", method: str = "POST", headers=None, auth=None, grant_type=None, state=None, **kwargs ): ... + def token_from_fragment(self, authorization_response, state=None): ... + def refresh_token(self, url=None, refresh_token=None, body: str = "", auth=None, headers=None, **kwargs): ... + def ensure_active_token(self, token=None): ... + def revoke_token(self, url, token=None, token_type_hint=None, body=None, auth=None, headers=None, **kwargs): ... + def introspect_token(self, url, token=None, token_type_hint=None, body=None, auth=None, headers=None, **kwargs): ... def register_compliance_hook(self, hook_type, hook) -> None: ... def parse_response_token(self, resp): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi b/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi index 69c1d6ee50dd..396cb7e89b36 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable, Collection, Mapping from typing_extensions import TypeAlias @@ -17,7 +16,7 @@ class AuthorizationServer: self, grant_type: str, client: ClientMixin, - user: Incomplete | None = None, + user=None, scope: str | None = None, expires_in: int | None = None, include_refresh_token: bool = True, @@ -36,11 +35,9 @@ class AuthorizationServer: ) -> None: ... def register_endpoint(self, endpoint) -> None: ... def get_authorization_grant(self, request: OAuth2Request) -> BaseGrant: ... - def get_consent_grant(self, request: Incomplete | None = None, end_user: Incomplete | None = None): ... + def get_consent_grant(self, request=None, end_user=None): ... def get_token_grant(self, request: OAuth2Request) -> BaseGrant: ... - def create_endpoint_response(self, name, request: Incomplete | None = None): ... - def create_authorization_response( - self, request: Incomplete | None = None, grant_user: Incomplete | None = None - ) -> object: ... - def create_token_response(self, request: Incomplete | None = None) -> _ServerResponse: ... + def create_endpoint_response(self, name, request=None): ... + def create_authorization_response(self, request=None, grant_user=None) -> object: ... + def create_token_response(self, request=None) -> _ServerResponse: ... def handle_error_response(self, request: OAuth2Request, error: OAuth2Error) -> object: ... diff --git a/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi b/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi index c5be5e1368dc..5244780497f4 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi @@ -65,7 +65,7 @@ class ForbiddenError(OAuth2Error): status_code: int auth_type: Incomplete realm: Incomplete - def __init__(self, auth_type: Incomplete | None = None, realm: Incomplete | None = None) -> None: ... + def __init__(self, auth_type=None, realm=None) -> None: ... def get_headers(self): ... class MissingAuthorizationError(ForbiddenError): diff --git a/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi b/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi index 5aea41fe8096..65f2dcc92645 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi @@ -20,7 +20,7 @@ class BaseGrant: def client(self): ... def generate_token( self, - user: Incomplete | None = None, + user=None, scope: str | None = None, grant_type: str | None = None, expires_in: int | None = None, diff --git a/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi b/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi index 2ee2fd5361ea..1a69dd8247de 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi @@ -1,14 +1,4 @@ -from _typeshed import Incomplete - -def prepare_grant_uri( - uri, - client_id, - response_type, - redirect_uri: Incomplete | None = None, - scope: Incomplete | None = None, - state: Incomplete | None = None, - **kwargs, -): ... -def prepare_token_request(grant_type, body: str = "", redirect_uri: Incomplete | None = None, **kwargs): ... -def parse_authorization_code_response(uri, state: Incomplete | None = None): ... -def parse_implicit_response(uri, state: Incomplete | None = None): ... +def prepare_grant_uri(uri, client_id, response_type, redirect_uri=None, scope=None, state=None, **kwargs): ... +def prepare_token_request(grant_type, body: str = "", redirect_uri=None, **kwargs): ... +def parse_authorization_code_response(uri, state=None): ... +def parse_implicit_response(uri, state=None): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi b/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi index 505c61e06802..6b9056ef2eb9 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi @@ -43,6 +43,6 @@ class JsonRequest: uri: Incomplete body: Incomplete headers: Incomplete - def __init__(self, method, uri, body: Incomplete | None = None, headers: Incomplete | None = None) -> None: ... + def __init__(self, method, uri, body=None, headers=None) -> None: ... @property def data(self): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi b/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi index 27ab2765730a..db0f51966333 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi @@ -4,7 +4,7 @@ class TokenValidator: TOKEN_TYPE: str realm: Incomplete extra_attributes: Incomplete - def __init__(self, realm: Incomplete | None = None, **extra_attributes) -> None: ... + def __init__(self, realm=None, **extra_attributes) -> None: ... @staticmethod def scope_insufficient(token_scopes, required_scopes): ... def authenticate_token(self, token_string) -> None: ... diff --git a/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi b/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi index 2c4fdca5115a..5144b65718d8 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi @@ -10,15 +10,7 @@ class InvalidTokenError(OAuth2Error): status_code: int realm: Incomplete extra_attributes: Incomplete - def __init__( - self, - description: Incomplete | None = None, - uri: Incomplete | None = None, - status_code: Incomplete | None = None, - state: Incomplete | None = None, - realm: Incomplete | None = None, - **extra_attributes, - ) -> None: ... + def __init__(self, description=None, uri=None, status_code=None, state=None, realm=None, **extra_attributes) -> None: ... def get_headers(self): ... class InsufficientScopeError(OAuth2Error): diff --git a/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi b/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi index de547a8a9797..3eb07c4cc26d 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - def add_to_uri(token, uri): ... -def add_to_headers(token, headers: Incomplete | None = None): ... -def add_to_body(token, body: Incomplete | None = None): ... +def add_to_headers(token, headers=None): ... +def add_to_body(token, body=None): ... def add_bearer_token(token, uri, headers, body, placement: str = "header"): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi b/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi index 44955fba002a..63a388bdb65d 100644 --- a/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable from typing import Protocol @@ -25,7 +24,7 @@ class BearerTokenGenerator: self, grant_type: str, client: ClientMixin, - user: Incomplete | None = None, + user=None, scope: str | None = None, expires_in: int | None = None, include_refresh_token: bool = True, @@ -34,7 +33,7 @@ class BearerTokenGenerator: self, grant_type: str, client: ClientMixin, - user: Incomplete | None = None, + user=None, scope: str | None = None, expires_in: int | None = None, include_refresh_token: bool = True, diff --git a/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi b/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi index 75b11c378ffa..4b3804813015 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi @@ -1,5 +1 @@ -from _typeshed import Incomplete - -def prepare_revoke_token_request( - token, token_type_hint: Incomplete | None = None, body: Incomplete | None = None, headers: Incomplete | None = None -): ... +def prepare_revoke_token_request(token, token_type_hint=None, body=None, headers=None): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi b/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi index e2be7fece77f..3aa0c2097a8b 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi @@ -23,11 +23,11 @@ class AssertionClient: token_endpoint, issuer, subject, - audience: Incomplete | None = None, - grant_type: Incomplete | None = None, - claims: Incomplete | None = None, + audience=None, + grant_type=None, + claims=None, token_placement: str = "header", - scope: Incomplete | None = None, + scope=None, leeway: int = 60, **kwargs, ) -> None: ... diff --git a/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi b/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi index 059422d8da34..01ddea88ac92 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi @@ -1,19 +1,5 @@ -from _typeshed import Incomplete - def sign_jwt_bearer_assertion( - key, - issuer, - audience, - subject: Incomplete | None = None, - issued_at: Incomplete | None = None, - expires_at: Incomplete | None = None, - claims: Incomplete | None = None, - header: Incomplete | None = None, - **kwargs, -): ... -def client_secret_jwt_sign( - client_secret, client_id, token_endpoint, alg: str = "HS256", claims: Incomplete | None = None, **kwargs -): ... -def private_key_jwt_sign( - private_key, client_id, token_endpoint, alg: str = "RS256", claims: Incomplete | None = None, **kwargs + key, issuer, audience, subject=None, issued_at=None, expires_at=None, claims=None, header=None, **kwargs ): ... +def client_secret_jwt_sign(client_secret, client_id, token_endpoint, alg: str = "HS256", claims=None, **kwargs): ... +def private_key_jwt_sign(private_key, client_id, token_endpoint, alg: str = "RS256", claims=None, **kwargs): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi b/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi index d346c96f2210..0ca742f08e3c 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi @@ -6,13 +6,7 @@ class ClientSecretJWT: token_endpoint: Incomplete claims: Incomplete headers: Incomplete - def __init__( - self, - token_endpoint: Incomplete | None = None, - claims: Incomplete | None = None, - headers: Incomplete | None = None, - alg: Incomplete | None = None, - ) -> None: ... + def __init__(self, token_endpoint=None, claims=None, headers=None, alg=None) -> None: ... def sign(self, auth, token_endpoint): ... def __call__(self, auth, method, uri, headers, body): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi b/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi index b78a2f639904..fde65f14309d 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi @@ -8,16 +8,7 @@ class JWTBearerGrant(BaseGrant, TokenEndpointMixin): GRANT_TYPE = JWT_BEARER_GRANT_TYPE CLAIMS_OPTIONS: Incomplete @staticmethod - def sign( - key, - issuer, - audience, - subject: Incomplete | None = None, - issued_at: Incomplete | None = None, - expires_at: Incomplete | None = None, - claims: Incomplete | None = None, - **kwargs, - ): ... + def sign(key, issuer, audience, subject=None, issued_at=None, expires_at=None, claims=None, **kwargs): ... def process_assertion_claims(self, assertion): ... def resolve_public_key(self, headers, payload): ... def validate_token_request(self) -> None: ... diff --git a/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi b/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi index d505d608fb82..e8612390e482 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi @@ -5,26 +5,11 @@ class JWTBearerTokenGenerator: secret_key: Incomplete issuer: Incomplete alg: Incomplete - def __init__(self, secret_key, issuer: Incomplete | None = None, alg: str = "RS256") -> None: ... + def __init__(self, secret_key, issuer=None, alg: str = "RS256") -> None: ... @staticmethod def get_allowed_scope(client, scope): ... @staticmethod def get_sub_value(user): ... - def get_token_data(self, grant_type, client, expires_in, user: Incomplete | None = None, scope: Incomplete | None = None): ... - def generate( - self, - grant_type, - client, - user: Incomplete | None = None, - scope: Incomplete | None = None, - expires_in: Incomplete | None = None, - ): ... - def __call__( - self, - grant_type, - client, - user: Incomplete | None = None, - scope: Incomplete | None = None, - expires_in: Incomplete | None = None, - include_refresh_token: bool = True, - ): ... + def get_token_data(self, grant_type, client, expires_in, user=None, scope=None): ... + def generate(self, grant_type, client, user=None, scope=None, expires_in=None): ... + def __call__(self, grant_type, client, user=None, scope=None, expires_in=None, include_refresh_token: bool = True): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi b/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi index 561b7219b59e..e9f1d0c7f535 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi @@ -18,7 +18,5 @@ class JWTBearerTokenValidator(BearerTokenValidator): token_cls = JWTBearerToken public_key: Incomplete claims_options: Incomplete - def __init__( - self, public_key, issuer: Incomplete | None = None, realm: Incomplete | None = None, **extra_attributes - ) -> None: ... + def __init__(self, public_key, issuer=None, realm=None, **extra_attributes) -> None: ... def authenticate_token(self, token_string): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi b/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi index c0af6f0c57ea..1ff8927c09e9 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi @@ -6,7 +6,7 @@ class ClientRegistrationEndpoint: software_statement_alg_values_supported: Incomplete server: Incomplete claims_classes: list[type[Incomplete]] - def __init__(self, server: Incomplete | None = None, claims_classes: list[type[Incomplete]] | None = None) -> None: ... + def __init__(self, server=None, claims_classes: list[type[Incomplete]] | None = None) -> None: ... def __call__(self, request) -> dict[Incomplete, Incomplete]: ... def create_registration_response(self, request): ... def extract_client_metadata(self, request): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi b/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi index 9c393a221416..4f0b0e527669 100644 --- a/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi @@ -5,7 +5,7 @@ class ClientConfigurationEndpoint: ENDPOINT_NAME: Final = "client_configuration" server: Incomplete claims_classes: list[type[Incomplete]] - def __init__(self, server: Incomplete | None = None, claims_classes: list[type[Incomplete]] | None = None) -> None: ... + def __init__(self, server=None, claims_classes: list[type[Incomplete]] | None = None) -> None: ... def __call__(self, request): ... def create_configuration_response(self, request): ... def create_endpoint_request(self, request): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi b/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi index 6351408041fa..b845e2d7129c 100644 --- a/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi @@ -1,9 +1,7 @@ -from _typeshed import Incomplete - from authlib.jose import JWTClaims class JWTAccessTokenClaims(JWTClaims): - def validate(self, now: Incomplete | None = None, leeway: int = 0, **kwargs) -> None: ... + def validate(self, now=None, leeway: int = 0, **kwargs) -> None: ... def validate_typ(self) -> None: ... def validate_client_id(self): ... def validate_auth_time(self) -> None: ... diff --git a/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi b/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi index 01b9140d6a18..3e36571ed83a 100644 --- a/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi @@ -5,7 +5,7 @@ from authlib.oauth2.rfc7662 import IntrospectionEndpoint class JWTIntrospectionEndpoint(IntrospectionEndpoint): ENDPOINT_NAME: str issuer: Incomplete - def __init__(self, issuer, server: Incomplete | None = None, *args, **kwargs) -> None: ... + def __init__(self, issuer, server=None, *args, **kwargs) -> None: ... def create_endpoint_response(self, request): ... def authenticate_token(self, request, client): ... def create_introspection_payload(self, token): ... diff --git a/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi b/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi index 263a06c72d2e..df8ac21b5f12 100644 --- a/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi @@ -4,6 +4,6 @@ from authlib.oauth2.rfc7009 import RevocationEndpoint class JWTRevocationEndpoint(RevocationEndpoint): issuer: Incomplete - def __init__(self, issuer, server: Incomplete | None = None, *args, **kwargs) -> None: ... + def __init__(self, issuer, server=None, *args, **kwargs) -> None: ... def authenticate_token(self, request, client) -> None: ... def get_jwks(self) -> None: ... diff --git a/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi b/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi index 84e438df0b66..959143518793 100644 --- a/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi @@ -5,13 +5,7 @@ from authlib.oauth2.rfc6750 import BearerTokenGenerator class JWTBearerTokenGenerator(BearerTokenGenerator): issuer: Incomplete alg: Incomplete - def __init__( - self, - issuer, - alg: str = "RS256", - refresh_token_generator: Incomplete | None = None, - expires_generator: Incomplete | None = None, - ) -> None: ... + def __init__(self, issuer, alg: str = "RS256", refresh_token_generator=None, expires_generator=None) -> None: ... def get_jwks(self) -> None: ... def get_extra_claims(self, client, grant_type, user, scope): ... def get_audiences(self, client, user, scope) -> str | list[str]: ... diff --git a/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi b/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi index 6b5a58f9ca81..70650d744335 100644 --- a/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi @@ -9,12 +9,4 @@ class JWTBearerTokenValidator(BearerTokenValidator): def get_jwks(self) -> None: ... def validate_iss(self, claims, iss: str) -> bool: ... def authenticate_token(self, token_string): ... - def validate_token( - self, - token, - scopes, - request, - groups: Incomplete | None = None, - roles: Incomplete | None = None, - entitlements: Incomplete | None = None, - ) -> None: ... + def validate_token(self, token, scopes, request, groups=None, roles=None, entitlements=None) -> None: ... diff --git a/stubs/Authlib/authlib/oidc/core/claims.pyi b/stubs/Authlib/authlib/oidc/core/claims.pyi index 96342e7ff69e..1fbd121ddd8f 100644 --- a/stubs/Authlib/authlib/oidc/core/claims.pyi +++ b/stubs/Authlib/authlib/oidc/core/claims.pyi @@ -6,7 +6,7 @@ __all__ = ["IDToken", "CodeIDToken", "ImplicitIDToken", "HybridIDToken", "UserIn class IDToken(JWTClaims): ESSENTIAL_CLAIMS: Incomplete - def validate(self, now: Incomplete | None = None, leeway: int = 0) -> None: ... + def validate(self, now=None, leeway: int = 0) -> None: ... def validate_auth_time(self) -> None: ... def validate_nonce(self) -> None: ... def validate_acr(self): ... @@ -24,7 +24,7 @@ class ImplicitIDToken(IDToken): class HybridIDToken(ImplicitIDToken): RESPONSE_TYPES: Incomplete - def validate(self, now: Incomplete | None = None, leeway: int = 0) -> None: ... + def validate(self, now=None, leeway: int = 0) -> None: ... def validate_c_hash(self) -> None: ... class UserInfo(dict[str, object]): diff --git a/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi b/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi index cc0e4dec23d4..e487fc127ea6 100644 --- a/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi +++ b/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi @@ -13,4 +13,4 @@ class OpenIDImplicitGrant(ImplicitGrant): def validate_consent_request(self) -> None: ... def create_authorization_response(self, redirect_uri, grant_user): ... def create_granted_params(self, grant_user): ... - def process_implicit_token(self, token, code: Incomplete | None = None): ... + def process_implicit_token(self, token, code=None): ... diff --git a/stubs/Flask-SocketIO/flask_socketio/namespace.pyi b/stubs/Flask-SocketIO/flask_socketio/namespace.pyi index 349f6fadb096..50ef75dceba2 100644 --- a/stubs/Flask-SocketIO/flask_socketio/namespace.pyi +++ b/stubs/Flask-SocketIO/flask_socketio/namespace.pyi @@ -14,7 +14,7 @@ class _Namespace(_BaseNamespace, Protocol): def emit( self, event: str, - data: Incomplete | None = None, + data=None, to=None, room: str | None = None, skip_sid=None, @@ -33,14 +33,7 @@ class _Namespace(_BaseNamespace, Protocol): ignore_queue: bool = False, ) -> None: ... def call( - self, - event: str, - data: Incomplete | None = None, - to=None, - sid=None, - namespace: str | None = None, - timeout=None, - ignore_queue: bool = False, + self, event: str, data=None, to=None, sid=None, namespace: str | None = None, timeout=None, ignore_queue: bool = False ): ... def enter_room(self, sid, room: str, namespace: str | None = None): ... def leave_room(self, sid, room: str, namespace: str | None = None): ... @@ -57,7 +50,7 @@ class Namespace(_Namespace): def emit( # type: ignore[override] self, event: str, - data: Incomplete | None = None, + data=None, room: str | None = None, include_self: bool = True, namespace: str | None = None, diff --git a/stubs/PyMySQL/pymysql/connections.pyi b/stubs/PyMySQL/pymysql/connections.pyi index 967f9f9499bc..63acfc6e5c99 100644 --- a/stubs/PyMySQL/pymysql/connections.pyi +++ b/stubs/PyMySQL/pymysql/connections.pyi @@ -86,20 +86,20 @@ class Connection(Generic[_C]): self: Connection[Cursor], # different between overloads *, host: str | None = None, - user: Incomplete | None = None, + user=None, password: str = "", - database: Incomplete | None = None, + database=None, port: int = 0, - unix_socket: Incomplete | None = None, + unix_socket=None, charset: str = "", collation: str | None = None, - sql_mode: Incomplete | None = None, - read_default_file: Incomplete | None = None, + sql_mode=None, + read_default_file=None, conv=None, use_unicode: bool | None = True, client_flag: int = 0, cursorclass: None = None, # different between overloads - init_command: Incomplete | None = None, + init_command=None, connect_timeout: int | None = 10, ssl: Mapping[Any, Any] | None = None, ssl_ca=None, @@ -109,21 +109,21 @@ class Connection(Generic[_C]): ssl_key_password: _PasswordType | None = None, ssl_verify_cert=None, ssl_verify_identity=None, - read_default_group: Incomplete | None = None, - compress: Incomplete | None = None, - named_pipe: Incomplete | None = None, + read_default_group=None, + compress=None, + named_pipe=None, autocommit: bool | None = False, - db: Incomplete | None = None, - passwd: Incomplete | None = None, + db=None, + passwd=None, local_infile: Incomplete | None = False, max_allowed_packet: int = 16777216, defer_connect: bool | None = False, auth_plugin_map: Mapping[Any, Any] | None = None, read_timeout: float | None = None, write_timeout: float | None = None, - bind_address: Incomplete | None = None, + bind_address=None, binary_prefix: bool | None = False, - program_name: Incomplete | None = None, + program_name=None, server_public_key: bytes | None = None, ) -> None: ... @overload @@ -132,20 +132,20 @@ class Connection(Generic[_C]): self: Connection[_C], # pyright: ignore[reportInvalidTypeVarUse] #11780 *, host: str | None = None, - user: Incomplete | None = None, + user=None, password: str = "", - database: Incomplete | None = None, + database=None, port: int = 0, - unix_socket: Incomplete | None = None, + unix_socket=None, charset: str = "", collation: str | None = None, - sql_mode: Incomplete | None = None, - read_default_file: Incomplete | None = None, + sql_mode=None, + read_default_file=None, conv=None, use_unicode: bool | None = True, client_flag: int = 0, cursorclass: type[_C] = ..., # different between overloads - init_command: Incomplete | None = None, + init_command=None, connect_timeout: int | None = 10, ssl: Mapping[Any, Any] | None = None, ssl_ca=None, @@ -154,21 +154,21 @@ class Connection(Generic[_C]): ssl_key=None, ssl_verify_cert=None, ssl_verify_identity=None, - read_default_group: Incomplete | None = None, - compress: Incomplete | None = None, - named_pipe: Incomplete | None = None, + read_default_group=None, + compress=None, + named_pipe=None, autocommit: bool | None = False, - db: Incomplete | None = None, - passwd: Incomplete | None = None, + db=None, + passwd=None, local_infile: Incomplete | None = False, max_allowed_packet: int = 16777216, defer_connect: bool | None = False, auth_plugin_map: Mapping[Any, Any] | None = None, read_timeout: float | None = None, write_timeout: float | None = None, - bind_address: Incomplete | None = None, + bind_address=None, binary_prefix: bool | None = False, - program_name: Incomplete | None = None, + program_name=None, server_public_key: bytes | None = None, ) -> None: ... socket: Any diff --git a/stubs/PyYAML/yaml/cyaml.pyi b/stubs/PyYAML/yaml/cyaml.pyi index 85526cc44723..f3642b6fa27e 100644 --- a/stubs/PyYAML/yaml/cyaml.pyi +++ b/stubs/PyYAML/yaml/cyaml.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, SupportsRead +from _typeshed import SupportsRead from collections.abc import Mapping, Sequence from typing import IO, Any from typing_extensions import TypeAlias @@ -34,14 +34,14 @@ class CBaseDumper(CEmitter, BaseRepresenter, BaseResolver): stream: IO[Any], default_style: str | None = None, default_flow_style: bool | None = False, - canonical: Incomplete | None = None, + canonical=None, indent: int | None = None, width: int | None = None, - allow_unicode: Incomplete | None = None, + allow_unicode=None, line_break: str | None = None, encoding: str | None = None, - explicit_start: Incomplete | None = None, - explicit_end: Incomplete | None = None, + explicit_start=None, + explicit_end=None, version: Sequence[int] | None = None, tags: Mapping[str, str] | None = None, sort_keys: bool = True, @@ -53,14 +53,14 @@ class CDumper(CEmitter, SafeRepresenter, Resolver): stream: IO[Any], default_style: str | None = None, default_flow_style: bool = False, - canonical: Incomplete | None = None, + canonical=None, indent: int | None = None, width: int | None = None, - allow_unicode: Incomplete | None = None, + allow_unicode=None, line_break: str | None = None, encoding: str | None = None, - explicit_start: Incomplete | None = None, - explicit_end: Incomplete | None = None, + explicit_start=None, + explicit_end=None, version: Sequence[int] | None = None, tags: Mapping[str, str] | None = None, sort_keys: bool = True, diff --git a/stubs/Pygments/pygments/cmdline.pyi b/stubs/Pygments/pygments/cmdline.pyi index d835e626a408..446595b76ffb 100644 --- a/stubs/Pygments/pygments/cmdline.pyi +++ b/stubs/Pygments/pygments/cmdline.pyi @@ -1,9 +1,8 @@ import argparse -from _typeshed import Incomplete def main_inner(parser, argns): ... class HelpFormatter(argparse.HelpFormatter): - def __init__(self, prog, indent_increment: int = 2, max_help_position: int = 16, width: Incomplete | None = None) -> None: ... + def __init__(self, prog, indent_increment: int = 2, max_help_position: int = 16, width=None) -> None: ... def main(args=...): ... diff --git a/stubs/Pygments/pygments/filter.pyi b/stubs/Pygments/pygments/filter.pyi index b3e9709d1adc..d11b994f87fa 100644 --- a/stubs/Pygments/pygments/filter.pyi +++ b/stubs/Pygments/pygments/filter.pyi @@ -1,11 +1,10 @@ -from _typeshed import Incomplete from collections.abc import Iterable, Iterator from typing import Any from pygments.lexer import Lexer from pygments.token import _TokenType -def apply_filters(stream, filters, lexer: Incomplete | None = None): ... +def apply_filters(stream, filters, lexer=None): ... def simplefilter(f): ... class Filter: diff --git a/stubs/Pygments/pygments/formatters/html.pyi b/stubs/Pygments/pygments/formatters/html.pyi index aba09dad6d64..234ff59e1dd1 100644 --- a/stubs/Pygments/pygments/formatters/html.pyi +++ b/stubs/Pygments/pygments/formatters/html.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, TypeVar from pygments.formatter import Formatter @@ -33,9 +32,9 @@ class HtmlFormatter(Formatter[_T]): linespans: Any anchorlinenos: Any hl_lines: Any - def get_style_defs(self, arg: Incomplete | None = None): ... - def get_token_style_defs(self, arg: Incomplete | None = None): ... - def get_background_style_defs(self, arg: Incomplete | None = None): ... + def get_style_defs(self, arg=None): ... + def get_token_style_defs(self, arg=None): ... + def get_background_style_defs(self, arg=None): ... def get_linenos_style_defs(self): ... def get_css_prefix(self, arg): ... def wrap(self, source): ... diff --git a/stubs/Pygments/pygments/formatters/terminal256.pyi b/stubs/Pygments/pygments/formatters/terminal256.pyi index 362c09d907fc..e494e05467c8 100644 --- a/stubs/Pygments/pygments/formatters/terminal256.pyi +++ b/stubs/Pygments/pygments/formatters/terminal256.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, TypeVar from pygments.formatter import Formatter @@ -11,14 +10,7 @@ class EscapeSequence: bold: Any underline: Any italic: Any - def __init__( - self, - fg: Incomplete | None = None, - bg: Incomplete | None = None, - bold: bool = False, - underline: bool = False, - italic: bool = False, - ) -> None: ... + def __init__(self, fg=None, bg=None, bold: bool = False, underline: bool = False, italic: bool = False) -> None: ... def escape(self, attrs): ... def color_string(self): ... def true_color_string(self): ... diff --git a/stubs/Pygments/pygments/lexer.pyi b/stubs/Pygments/pygments/lexer.pyi index 595e1818fad3..9d760b95b206 100644 --- a/stubs/Pygments/pygments/lexer.pyi +++ b/stubs/Pygments/pygments/lexer.pyi @@ -49,9 +49,9 @@ class combined(tuple[Incomplete, ...]): class _PseudoMatch: def __init__(self, start, text) -> None: ... - def start(self, arg: Incomplete | None = None): ... - def end(self, arg: Incomplete | None = None): ... - def group(self, arg: Incomplete | None = None): ... + def start(self, arg=None): ... + def end(self, arg=None): ... + def group(self, arg=None): ... def groups(self): ... def groupdict(self): ... @@ -75,7 +75,7 @@ class words(Future): def get(self): ... class RegexLexerMeta(LexerMeta): - def process_tokendef(cls, name, tokendefs: Incomplete | None = None): ... + def process_tokendef(cls, name, tokendefs=None): ... def get_tokendefs(cls): ... def __call__(cls, *args, **kwds): ... @@ -89,7 +89,7 @@ class LexerContext: pos: Incomplete end: Incomplete stack: Incomplete - def __init__(self, text, pos, stack: Incomplete | None = None, end: Incomplete | None = None) -> None: ... + def __init__(self, text, pos, stack=None, end=None) -> None: ... class ExtendedRegexLexer(RegexLexer): def get_tokens_unprocessed( # type: ignore[override] diff --git a/stubs/Pygments/pygments/util.pyi b/stubs/Pygments/pygments/util.pyi index 160045340566..963a810038a6 100644 --- a/stubs/Pygments/pygments/util.pyi +++ b/stubs/Pygments/pygments/util.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from io import TextIOWrapper from typing import Any @@ -10,10 +9,10 @@ xml_decl_re: Any class ClassNotFound(ValueError): ... class OptionError(Exception): ... -def get_choice_opt(options, optname, allowed, default: Incomplete | None = None, normcase: bool = False): ... -def get_bool_opt(options, optname, default: Incomplete | None = None): ... -def get_int_opt(options, optname, default: Incomplete | None = None): ... -def get_list_opt(options, optname, default: Incomplete | None = None): ... +def get_choice_opt(options, optname, allowed, default=None, normcase: bool = False): ... +def get_bool_opt(options, optname, default=None): ... +def get_int_opt(options, optname, default=None): ... +def get_list_opt(options, optname, default=None): ... def docstring_headline(obj): ... def make_analysator(f): ... def shebang_matches(text, regex): ... diff --git a/stubs/aiofiles/aiofiles/tempfile/__init__.pyi b/stubs/aiofiles/aiofiles/tempfile/__init__.pyi index 1e3bbbb33933..87692d844b39 100644 --- a/stubs/aiofiles/aiofiles/tempfile/__init__.pyi +++ b/stubs/aiofiles/aiofiles/tempfile/__init__.pyi @@ -1,7 +1,6 @@ import sys from _typeshed import ( BytesPath, - Incomplete, OpenBinaryMode, OpenBinaryModeReading, OpenBinaryModeUpdating, @@ -29,7 +28,7 @@ def TemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncTextIOWrapper]: ... # Unbuffered binary: returns a FileIO @@ -43,7 +42,7 @@ def TemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncFileIO]: ... # Buffered binary reading/updating: AsyncBufferedReader @@ -57,7 +56,7 @@ def TemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedReader]: ... # Buffered binary writing: AsyncBufferedIOBase @@ -71,7 +70,7 @@ def TemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedIOBase]: ... # 3.12 added `delete_on_close` @@ -89,7 +88,7 @@ if sys.version_info >= (3, 12): delete: bool = True, delete_on_close: bool = True, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncTextIOWrapper]: ... # Unbuffered binary: returns a FileIO @@ -105,7 +104,7 @@ if sys.version_info >= (3, 12): delete: bool = True, delete_on_close: bool = True, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncFileIO]: ... # Buffered binary reading/updating: AsyncBufferedReader @@ -121,7 +120,7 @@ if sys.version_info >= (3, 12): delete: bool = True, delete_on_close: bool = True, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedReader]: ... # Buffered binary writing: AsyncBufferedIOBase @@ -137,7 +136,7 @@ if sys.version_info >= (3, 12): delete: bool = True, delete_on_close: bool = True, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedIOBase]: ... else: @@ -153,7 +152,7 @@ else: dir: StrOrBytesPath | None = None, delete: bool = True, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncTextIOWrapper]: ... # Unbuffered binary: returns a FileIO @@ -168,7 +167,7 @@ else: dir: StrOrBytesPath | None = None, delete: bool = True, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncFileIO]: ... # Buffered binary reading/updating: AsyncBufferedReader @@ -183,7 +182,7 @@ else: dir: StrOrBytesPath | None = None, delete: bool = True, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedReader]: ... # Buffered binary writing: AsyncBufferedIOBase @@ -198,7 +197,7 @@ else: dir: StrOrBytesPath | None = None, delete: bool = True, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedIOBase]: ... # Text mode: always returns AsyncTextIOWrapper @@ -214,7 +213,7 @@ def SpooledTemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncTextIOWrapper]: ... @overload def SpooledTemporaryFile( @@ -227,7 +226,7 @@ def SpooledTemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncTextIOWrapper]: ... # Unbuffered binary: returns a FileIO @@ -243,7 +242,7 @@ def SpooledTemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncFileIO]: ... @overload def SpooledTemporaryFile( @@ -256,7 +255,7 @@ def SpooledTemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncFileIO]: ... # Buffered binary reading/updating: AsyncBufferedReader @@ -271,7 +270,7 @@ def SpooledTemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedReader]: ... # Buffered binary writing: AsyncBufferedIOBase @@ -287,7 +286,7 @@ def SpooledTemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedIOBase]: ... @overload def SpooledTemporaryFile( @@ -300,7 +299,7 @@ def SpooledTemporaryFile( prefix: AnyStr | None = None, dir: StrOrBytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedIOBase]: ... @overload def TemporaryDirectory( @@ -308,7 +307,7 @@ def TemporaryDirectory( prefix: str | None = None, dir: StrPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManagerTempDir: ... @overload def TemporaryDirectory( @@ -316,7 +315,7 @@ def TemporaryDirectory( prefix: bytes | None = None, dir: BytesPath | None = None, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManagerTempDir: ... class AiofilesContextManagerTempDir(AiofilesContextManager[AsyncTemporaryDirectory]): diff --git a/stubs/aiofiles/aiofiles/threadpool/__init__.pyi b/stubs/aiofiles/aiofiles/threadpool/__init__.pyi index cf4814ced833..4a3635a1c69c 100644 --- a/stubs/aiofiles/aiofiles/threadpool/__init__.pyi +++ b/stubs/aiofiles/aiofiles/threadpool/__init__.pyi @@ -1,6 +1,5 @@ from _typeshed import ( FileDescriptorOrPath, - Incomplete, OpenBinaryMode, OpenBinaryModeReading, OpenBinaryModeUpdating, @@ -31,7 +30,7 @@ def open( opener: _Opener | None = None, *, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncTextIOWrapper]: ... # Unbuffered binary: returns a FileIO @@ -47,7 +46,7 @@ def open( opener: _Opener | None = None, *, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncFileIO]: ... # Buffered binary reading/updating: AsyncBufferedReader @@ -63,7 +62,7 @@ def open( opener: _Opener | None = None, *, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedReader]: ... # Buffered binary writing: AsyncBufferedIOBase @@ -79,7 +78,7 @@ def open( opener: _Opener | None = None, *, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[AsyncBufferedIOBase]: ... # Buffering cannot be determined: fall back to _UnknownAsyncBinaryIO @@ -95,7 +94,7 @@ def open( opener: _Opener | None = None, *, loop: AbstractEventLoop | None = None, - executor: Incomplete | None = None, + executor=None, ) -> AiofilesContextManager[_UnknownAsyncBinaryIO]: ... stdin: AsyncTextIndirectIOWrapper diff --git a/stubs/antlr4-python3-runtime/antlr4/ParserRuleContext.pyi b/stubs/antlr4-python3-runtime/antlr4/ParserRuleContext.pyi index 2a78146a481a..b687a84d2713 100644 --- a/stubs/antlr4-python3-runtime/antlr4/ParserRuleContext.pyi +++ b/stubs/antlr4-python3-runtime/antlr4/ParserRuleContext.pyi @@ -28,7 +28,7 @@ class ParserRuleContext(RuleContext): def addTokenNode(self, token: Token): ... def addErrorNode(self, badToken: Token): ... def getChild(self, i: int, ttype: type | None = None): ... - def getChildren(self, predicate: Incomplete | None = None) -> Generator[Incomplete, None, None]: ... + def getChildren(self, predicate=None) -> Generator[Incomplete, None, None]: ... def getToken(self, ttype: int, i: int): ... def getTokens(self, ttype: int): ... def getTypedRuleContext(self, ctxType: type, i: int): ... diff --git a/stubs/antlr4-python3-runtime/antlr4/atn/ATNConfigSet.pyi b/stubs/antlr4-python3-runtime/antlr4/atn/ATNConfigSet.pyi index 3e20e2da2e62..0c7ac52b273d 100644 --- a/stubs/antlr4-python3-runtime/antlr4/atn/ATNConfigSet.pyi +++ b/stubs/antlr4-python3-runtime/antlr4/atn/ATNConfigSet.pyi @@ -24,7 +24,7 @@ class ATNConfigSet: cachedHashCode: int def __init__(self, fullCtx: bool = True) -> None: ... def __iter__(self): ... - def add(self, config: ATNConfig, mergeCache: Incomplete | None = None): ... + def add(self, config: ATNConfig, mergeCache=None): ... def getOrAdd(self, config: ATNConfig): ... def getStates(self): ... def getPredicates(self): ... diff --git a/stubs/antlr4-python3-runtime/antlr4/atn/ATNDeserializer.pyi b/stubs/antlr4-python3-runtime/antlr4/atn/ATNDeserializer.pyi index fbb06ad67f97..8c2a67e5a627 100644 --- a/stubs/antlr4-python3-runtime/antlr4/atn/ATNDeserializer.pyi +++ b/stubs/antlr4-python3-runtime/antlr4/atn/ATNDeserializer.pyi @@ -30,7 +30,7 @@ class ATNDeserializer: def stateIsEndStateFor(self, state: ATNState, idx: int): ... def markPrecedenceDecisions(self, atn: ATN): ... def verifyATN(self, atn: ATN): ... - def checkCondition(self, condition: bool, message: Incomplete | None = None): ... + def checkCondition(self, condition: bool, message=None): ... def readInt(self): ... edgeFactories: Incomplete def edgeFactory(self, atn: ATN, type: int, src: int, trg: int, arg1: int, arg2: int, arg3: int, sets: list[Incomplete]): ... diff --git a/stubs/antlr4-python3-runtime/antlr4/error/Errors.pyi b/stubs/antlr4-python3-runtime/antlr4/error/Errors.pyi index 1c2a6812247e..1a4fe8f7d38f 100644 --- a/stubs/antlr4-python3-runtime/antlr4/error/Errors.pyi +++ b/stubs/antlr4-python3-runtime/antlr4/error/Errors.pyi @@ -21,11 +21,7 @@ class RecognitionException(Exception): offendingToken: Incomplete offendingState: int def __init__( - self, - message: str | None = None, - recognizer: Recognizer | None = None, - input: InputStream | None = None, - ctx: Incomplete | None = None, + self, message: str | None = None, recognizer: Recognizer | None = None, input: InputStream | None = None, ctx=None ) -> None: ... def getExpectedTokens(self): ... @@ -42,10 +38,10 @@ class NoViableAltException(RecognitionException): def __init__( self, recognizer, - input: Incomplete | None = None, - startToken: Incomplete | None = None, - offendingToken: Incomplete | None = None, - deadEndConfigs: Incomplete | None = None, + input=None, + startToken=None, + offendingToken=None, + deadEndConfigs=None, ctx: ParserRuleContext | None = None, ) -> None: ... diff --git a/stubs/antlr4-python3-runtime/antlr4/xpath/XPathLexer.pyi b/stubs/antlr4-python3-runtime/antlr4/xpath/XPathLexer.pyi index a6b67a6d5329..5aac6033dbf9 100644 --- a/stubs/antlr4-python3-runtime/antlr4/xpath/XPathLexer.pyi +++ b/stubs/antlr4-python3-runtime/antlr4/xpath/XPathLexer.pyi @@ -22,7 +22,7 @@ class XPathLexer(Lexer): symbolicNames: Incomplete ruleNames: Incomplete grammarFileName: str - def __init__(self, input: Incomplete | None = None, output: TextIO = ...) -> None: ... + def __init__(self, input=None, output: TextIO = ...) -> None: ... def action(self, localctx: RuleContext, ruleIndex: int, actionIndex: int): ... type: Incomplete def ID_action(self, localctx: RuleContext, actionIndex: int): ... diff --git a/stubs/auth0-python/auth0/exceptions.pyi b/stubs/auth0-python/auth0/exceptions.pyi index 22a62ca6d727..608d6bb013f7 100644 --- a/stubs/auth0-python/auth0/exceptions.pyi +++ b/stubs/auth0-python/auth0/exceptions.pyi @@ -5,7 +5,7 @@ class Auth0Error(Exception): error_code: str message: str content: Incomplete | None - def __init__(self, status_code: int, error_code: str, message: str, content: Incomplete | None = None) -> None: ... + def __init__(self, status_code: int, error_code: str, message: str, content=None) -> None: ... class RateLimitError(Auth0Error): reset_at: int diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/async_context.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/async_context.pyi index d0fd6c1f8bd9..7579d0896224 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/async_context.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/async_context.pyi @@ -1,13 +1,11 @@ -from _typeshed import Incomplete - from .context import Context as _Context class AsyncContext(_Context): - def __init__(self, *args, loop: Incomplete | None = None, use_task_factory: bool = True, **kwargs) -> None: ... + def __init__(self, *args, loop=None, use_task_factory: bool = True, **kwargs) -> None: ... def clear_trace_entities(self) -> None: ... class TaskLocalStorage: - def __init__(self, loop: Incomplete | None = None) -> None: ... + def __init__(self, loop=None) -> None: ... def __setattr__(self, name: str, value) -> None: ... def __getattribute__(self, item: str): ... def clear(self) -> None: ... diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/async_recorder.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/async_recorder.pyi index 41138e427427..4d4bdb8be332 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/async_recorder.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/async_recorder.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from types import TracebackType from .models.segment import SegmentContextManager @@ -19,7 +18,7 @@ class AsyncSubsegmentContextManager(SubsegmentContextManager): ) -> None: ... class AsyncAWSXRayRecorder(AWSXRayRecorder): - def capture_async(self, name: Incomplete | None = None): ... - def in_segment_async(self, name: Incomplete | None = None, **segment_kwargs): ... - def in_subsegment_async(self, name: Incomplete | None = None, **subsegment_kwargs): ... + def capture_async(self, name=None): ... + def in_segment_async(self, name=None, **segment_kwargs): ... + def in_subsegment_async(self, name=None, **subsegment_kwargs): ... async def record_subsegment_async(self, wrapped, instance, args, kwargs, name, namespace, meta_processor): ... diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/lambda_launcher.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/lambda_launcher.pyi index 2ff1a6d6c6ba..9d0cbf5e3f17 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/lambda_launcher.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/lambda_launcher.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from logging import Logger from .context import Context @@ -14,7 +13,7 @@ def check_in_lambda(): ... class LambdaContext(Context): def __init__(self) -> None: ... def put_segment(self, segment) -> None: ... - def end_segment(self, end_time: Incomplete | None = None) -> None: ... + def end_segment(self, end_time=None) -> None: ... def put_subsegment(self, subsegment) -> None: ... def get_trace_entity(self): ... @property diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/models/entity.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/models/entity.pyi index 91260a83d9b7..20be6fe08682 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/models/entity.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/models/entity.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from logging import Logger from traceback import StackSummary from typing import Any @@ -20,8 +19,8 @@ class Entity: cause: Any subsegments: Any end_time: Any - def __init__(self, name, entity_id: Incomplete | None = None) -> None: ... - def close(self, end_time: Incomplete | None = None) -> None: ... + def __init__(self, name, entity_id=None) -> None: ... + def close(self, end_time=None) -> None: ... def add_subsegment(self, subsegment) -> None: ... def remove_subsegment(self, subsegment) -> None: ... def put_http_meta(self, key, value) -> None: ... diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/models/facade_segment.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/models/facade_segment.pyi index 44623545f089..96d406a6a9d7 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/models/facade_segment.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/models/facade_segment.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from .segment import Segment @@ -8,7 +7,7 @@ MUTATION_UNSUPPORTED_MESSAGE: str class FacadeSegment(Segment): initializing: Any def __init__(self, name, entityid, traceid, sampled) -> None: ... - def close(self, end_time: Incomplete | None = None) -> None: ... + def close(self, end_time=None) -> None: ... def put_http_meta(self, key, value) -> None: ... def put_annotation(self, key, value) -> None: ... def put_metadata(self, key, value, namespace: str = "default") -> None: ... diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi index 634e32b12a84..aefece2fd34b 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi @@ -1,5 +1,4 @@ import time -from _typeshed import Incomplete from types import TracebackType from typing import Any @@ -18,7 +17,7 @@ class SubsegmentContextManager: subsegment_kwargs: dict[str, Any] | None recorder: AWSXRayRecorder subsegment: Subsegment - def __init__(self, recorder: AWSXRayRecorder, name: Incomplete | None = None, **subsegment_kwargs) -> None: ... + def __init__(self, recorder: AWSXRayRecorder, name=None, **subsegment_kwargs) -> None: ... def __call__(self, wrapped, instance, args: list[Any], kwargs: dict[str, Any]): ... def __enter__(self) -> Subsegment | None: ... def __exit__( diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/ec2_plugin.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/ec2_plugin.pyi index 1d6578904503..3d3e5ea52cc3 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/ec2_plugin.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/ec2_plugin.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any log: Any @@ -8,6 +7,6 @@ IMDS_URL: str def initialize() -> None: ... def get_token(): ... -def get_metadata(token: Incomplete | None = None): ... +def get_metadata(token=None): ... def parse_metadata_json(json_str): ... -def do_request(url, headers: Incomplete | None = None, method: str = "GET"): ... +def do_request(url, headers=None, method: str = "GET"): ... diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/local/sampler.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/local/sampler.pyi index b681bba3524f..fef2a8ebb405 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/local/sampler.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/local/sampler.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from ...exceptions.exceptions import InvalidSamplingManifestError as InvalidSamplingManifestError @@ -9,5 +8,5 @@ SUPPORTED_RULE_VERSION: Any class LocalSampler: def __init__(self, rules=...) -> None: ... - def should_trace(self, sampling_req: Incomplete | None = None): ... + def should_trace(self, sampling_req=None): ... def load_local_rules(self, rules) -> None: ... diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampler.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampler.pyi index e9dd290957d0..e3ff1cb5e23a 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampler.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampler.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from .connector import ServiceConnector as ServiceConnector @@ -13,9 +12,9 @@ log: Any class DefaultSampler: def __init__(self) -> None: ... def start(self) -> None: ... - def should_trace(self, sampling_req: Incomplete | None = None): ... + def should_trace(self, sampling_req=None): ... def load_local_rules(self, rules) -> None: ... - def load_settings(self, daemon_config, context, origin: Incomplete | None = None) -> None: ... + def load_settings(self, daemon_config, context, origin=None) -> None: ... @property def xray_client(self): ... @xray_client.setter diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampling_rule.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampling_rule.pyi index 17b6ee99d6d3..1ea487cfb0c7 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampling_rule.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampling_rule.pyi @@ -1,17 +1,6 @@ -from _typeshed import Incomplete - class SamplingRule: def __init__( - self, - name, - priority, - rate, - reservoir_size, - host: Incomplete | None = None, - method: Incomplete | None = None, - path: Incomplete | None = None, - service: Incomplete | None = None, - service_type: Incomplete | None = None, + self, name, priority, rate, reservoir_size, host=None, method=None, path=None, service=None, service_type=None ) -> None: ... def match(self, sampling_req): ... def is_default(self): ... diff --git a/stubs/aws-xray-sdk/aws_xray_sdk/core/utils/stacktrace.pyi b/stubs/aws-xray-sdk/aws_xray_sdk/core/utils/stacktrace.pyi index 6ebf8da33e5e..f7df10b9d7a3 100644 --- a/stubs/aws-xray-sdk/aws_xray_sdk/core/utils/stacktrace.pyi +++ b/stubs/aws-xray-sdk/aws_xray_sdk/core/utils/stacktrace.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def get_stacktrace(limit: Incomplete | None = None): ... +def get_stacktrace(limit=None): ... diff --git a/stubs/beautifulsoup4/bs4/__init__.pyi b/stubs/beautifulsoup4/bs4/__init__.pyi index f3eadd12e906..2bbbfc78da19 100644 --- a/stubs/beautifulsoup4/bs4/__init__.pyi +++ b/stubs/beautifulsoup4/bs4/__init__.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, SupportsRead +from _typeshed import SupportsRead from collections.abc import Iterator, Sequence from typing import Any from typing_extensions import Self @@ -55,35 +55,19 @@ class BeautifulSoup(Tag): preserve_whitespace_tag_stack: Any string_container_stack: Any def reset(self) -> None: ... - def new_tag( - self, - name, - namespace: Incomplete | None = None, - nsprefix: Incomplete | None = None, - attrs={}, - sourceline: Incomplete | None = None, - sourcepos: Incomplete | None = None, - **kwattrs, - ) -> Tag: ... - def string_container(self, base_class: Incomplete | None = None): ... - def new_string(self, s, subclass: Incomplete | None = None): ... + def new_tag(self, name, namespace=None, nsprefix=None, attrs={}, sourceline=None, sourcepos=None, **kwattrs) -> Tag: ... + def string_container(self, base_class=None): ... + def new_string(self, s, subclass=None): ... def insert_before(self, *args) -> None: ... def insert_after(self, *args) -> None: ... def popTag(self): ... def pushTag(self, tag) -> None: ... - def endData(self, containerClass: Incomplete | None = None) -> None: ... - def object_was_parsed(self, o, parent: Incomplete | None = None, most_recent_element: Incomplete | None = None) -> None: ... + def endData(self, containerClass=None) -> None: ... + def object_was_parsed(self, o, parent=None, most_recent_element=None) -> None: ... def handle_starttag( - self, - name, - namespace, - nsprefix, - attrs, - sourceline: Incomplete | None = None, - sourcepos: Incomplete | None = None, - namespaces: dict[str, str] | None = None, + self, name, namespace, nsprefix, attrs, sourceline=None, sourcepos=None, namespaces: dict[str, str] | None = None ): ... - def handle_endtag(self, name, nsprefix: Incomplete | None = None) -> None: ... + def handle_endtag(self, name, nsprefix=None) -> None: ... def handle_data(self, data) -> None: ... def decode( # type: ignore[override] self, diff --git a/stubs/beautifulsoup4/bs4/builder/__init__.pyi b/stubs/beautifulsoup4/bs4/builder/__init__.pyi index 126205fa2d9f..0399fb520883 100644 --- a/stubs/beautifulsoup4/bs4/builder/__init__.pyi +++ b/stubs/beautifulsoup4/bs4/builder/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any class TreeBuilderRegistry: @@ -33,11 +32,7 @@ class TreeBuilder: def can_be_empty_element(self, tag_name): ... def feed(self, markup) -> None: ... def prepare_markup( - self, - markup, - user_specified_encoding: Incomplete | None = None, - document_declared_encoding: Incomplete | None = None, - exclude_encodings: Incomplete | None = None, + self, markup, user_specified_encoding=None, document_declared_encoding=None, exclude_encodings=None ) -> None: ... def test_fragment_to_document(self, fragment): ... def set_up_substitutions(self, tag): ... diff --git a/stubs/beautifulsoup4/bs4/builder/_htmlparser.pyi b/stubs/beautifulsoup4/bs4/builder/_htmlparser.pyi index c4677b05a63c..fc912e5eeccd 100644 --- a/stubs/beautifulsoup4/bs4/builder/_htmlparser.pyi +++ b/stubs/beautifulsoup4/bs4/builder/_htmlparser.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from html.parser import HTMLParser from typing import Any @@ -28,12 +27,8 @@ class HTMLParserTreeBuilder(HTMLTreeBuilder): features: Any TRACKS_LINE_NUMBERS: bool parser_args: Any - def __init__(self, parser_args: Incomplete | None = None, parser_kwargs: Incomplete | None = None, **kwargs) -> None: ... + def __init__(self, parser_args=None, parser_kwargs=None, **kwargs) -> None: ... def prepare_markup( - self, - markup, - user_specified_encoding: Incomplete | None = None, - document_declared_encoding: Incomplete | None = None, - exclude_encodings: Incomplete | None = None, + self, markup, user_specified_encoding=None, document_declared_encoding=None, exclude_encodings=None ) -> None: ... def feed(self, markup) -> None: ... diff --git a/stubs/beautifulsoup4/bs4/builder/_lxml.pyi b/stubs/beautifulsoup4/bs4/builder/_lxml.pyi index 63b2a2f4bd7e..8490889295aa 100644 --- a/stubs/beautifulsoup4/bs4/builder/_lxml.pyi +++ b/stubs/beautifulsoup4/bs4/builder/_lxml.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from bs4.builder import HTMLTreeBuilder, TreeBuilder @@ -19,13 +18,9 @@ class LXMLTreeBuilderForXML(TreeBuilder): empty_element_tags: Any soup: Any nsmaps: Any - def __init__(self, parser: Incomplete | None = None, empty_element_tags: Incomplete | None = None, **kwargs) -> None: ... + def __init__(self, parser=None, empty_element_tags=None, **kwargs) -> None: ... def prepare_markup( # type: ignore[override] # the order of the parameters is different - self, - markup, - user_specified_encoding: Incomplete | None = None, - exclude_encodings: Incomplete | None = None, - document_declared_encoding: Incomplete | None = None, + self, markup, user_specified_encoding=None, exclude_encodings=None, document_declared_encoding=None ) -> None: ... parser: Any def feed(self, markup) -> None: ... diff --git a/stubs/beautifulsoup4/bs4/element.pyi b/stubs/beautifulsoup4/bs4/element.pyi index cf5d39a4d4ef..47eb80b5b853 100644 --- a/stubs/beautifulsoup4/bs4/element.pyi +++ b/stubs/beautifulsoup4/bs4/element.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, ReadableBuffer +from _typeshed import ReadableBuffer from collections.abc import Callable, Iterable, Iterator from re import Pattern from typing import Any, Literal, TypeVar, overload @@ -359,16 +359,10 @@ class Tag(PageElement): @property def descendants(self) -> Iterable[PageElement]: ... def select_one( - self, selector: str, namespaces: Incomplete | None = None, *, flags: int = ..., custom: dict[str, str] | None = ... + self, selector: str, namespaces=None, *, flags: int = ..., custom: dict[str, str] | None = ... ) -> Tag | None: ... def select( - self, - selector: str, - namespaces: Incomplete | None = None, - limit: int | None = None, - *, - flags: int = ..., - custom: dict[str, str] | None = ..., + self, selector: str, namespaces=None, limit: int | None = None, *, flags: int = ..., custom: dict[str, str] | None = ... ) -> ResultSet[Tag]: ... def childGenerator(self) -> Iterable[PageElement]: ... def recursiveChildGenerator(self) -> Iterable[PageElement]: ... diff --git a/stubs/boltons/boltons/cacheutils.pyi b/stubs/boltons/boltons/cacheutils.pyi index fe00700c3299..751aaec3b1e8 100644 --- a/stubs/boltons/boltons/cacheutils.pyi +++ b/stubs/boltons/boltons/cacheutils.pyi @@ -20,9 +20,7 @@ class LRI(dict[_KT, _VT]): soft_miss_count: int max_size: int on_miss: Callable[[_KT], _VT] | None - def __init__( - self, max_size: int = 128, values: Incomplete | None = None, on_miss: Callable[[_KT], _VT] | None = None - ) -> None: ... + def __init__(self, max_size: int = 128, values=None, on_miss: Callable[[_KT], _VT] | None = None) -> None: ... def __setitem__(self, key: _KT, value: _VT) -> None: ... def __getitem__(self, key: _KT) -> _VT: ... @overload @@ -85,7 +83,7 @@ class CachedMethod: typed: bool = False, key: Callable[..., Incomplete] | None = None, ): ... - def __get__(self, obj, objtype: Incomplete | None = None): ... + def __get__(self, obj, objtype=None): ... def __call__(self, *args, **kwargs): ... def cached( diff --git a/stubs/boltons/boltons/funcutils.pyi b/stubs/boltons/boltons/funcutils.pyi index b44cccf3b94b..0102bc154b33 100644 --- a/stubs/boltons/boltons/funcutils.pyi +++ b/stubs/boltons/boltons/funcutils.pyi @@ -19,7 +19,7 @@ def inspect_formatargspec( formatreturns=..., formatannotation=..., ): ... -def get_module_callables(mod, ignore: Incomplete | None = None): ... +def get_module_callables(mod, ignore=None): ... def mro_items(type_obj): ... def dir_dict(obj, raise_exc: bool = False): ... def copy_function(orig, copy_dict: bool = True): ... @@ -37,22 +37,11 @@ class CachedInstancePartial(functools.partial[Incomplete]): partial = CachedInstancePartial -def format_invocation(name: str = "", args=(), kwargs: Incomplete | None = None, **kw): ... -def format_exp_repr( - obj, pos_names, req_names: Incomplete | None = None, opt_names: Incomplete | None = None, opt_key: Incomplete | None = None -): ... -def format_nonexp_repr( - obj, req_names: Incomplete | None = None, opt_names: Incomplete | None = None, opt_key: Incomplete | None = None -): ... -def wraps(func, injected: Incomplete | None = None, expected: Incomplete | None = None, **kw): ... -def update_wrapper( - wrapper, - func, - injected: Incomplete | None = None, - expected: Incomplete | None = None, - build_from: Incomplete | None = None, - **kw, -): ... +def format_invocation(name: str = "", args=(), kwargs=None, **kw): ... +def format_exp_repr(obj, pos_names, req_names=None, opt_names=None, opt_key=None): ... +def format_nonexp_repr(obj, req_names=None, opt_names=None, opt_key=None): ... +def wraps(func, injected=None, expected=None, **kw): ... +def update_wrapper(wrapper, func, injected=None, expected=None, build_from=None, **kw): ... class FunctionBuilder: name: Incomplete @@ -61,7 +50,7 @@ class FunctionBuilder: def get_invocation_str(self): ... @classmethod def from_func(cls, func): ... - def get_func(self, execdict: Incomplete | None = None, add_source: bool = True, with_dict: bool = True): ... + def get_func(self, execdict=None, add_source: bool = True, with_dict: bool = True): ... def get_defaults_dict(self): ... def get_arg_names(self, only_required: bool = False): ... defaults: Incomplete diff --git a/stubs/boltons/boltons/ioutils.pyi b/stubs/boltons/boltons/ioutils.pyi index a7e325a1aa23..90bb47dad2e1 100644 --- a/stubs/boltons/boltons/ioutils.pyi +++ b/stubs/boltons/boltons/ioutils.pyi @@ -7,7 +7,7 @@ EINVAL: Incomplete class SpooledIOBase(metaclass=abc.ABCMeta): __metaclass__: Incomplete - def __init__(self, max_size: int = 5000000, dir: Incomplete | None = None) -> None: ... + def __init__(self, max_size: int = 5000000, dir=None) -> None: ... @abstractmethod def read(self, n: int = -1): ... @abstractmethod @@ -15,7 +15,7 @@ class SpooledIOBase(metaclass=abc.ABCMeta): @abstractmethod def seek(self, pos, mode: int = 0): ... @abstractmethod - def readline(self, length: Incomplete | None = None): ... + def readline(self, length=None): ... @abstractmethod def readlines(self, sizehint: int = 0): ... def writelines(self, lines) -> None: ... @@ -41,7 +41,7 @@ class SpooledIOBase(metaclass=abc.ABCMeta): @property def buf(self): ... def fileno(self): ... - def truncate(self, size: Incomplete | None = None): ... + def truncate(self, size=None): ... def getvalue(self): ... def seekable(self): ... def readable(self): ... @@ -61,7 +61,7 @@ class SpooledBytesIO(SpooledIOBase): def read(self, n: int = -1): ... def write(self, s) -> None: ... def seek(self, pos, mode: int = 0): ... - def readline(self, length: Incomplete | None = None): ... + def readline(self, length=None): ... def readlines(self, sizehint: int = 0): ... def rollover(self) -> None: ... @property @@ -75,7 +75,7 @@ class SpooledStringIO(SpooledIOBase): def read(self, n: int = -1): ... def write(self, s) -> None: ... def seek(self, pos, mode: int = 0): ... - def readline(self, length: Incomplete | None = None): ... + def readline(self, length=None): ... def readlines(self, sizehint: int = 0): ... @property def buffer(self): ... @@ -88,5 +88,5 @@ def is_text_fileobj(fileobj) -> bool: ... class MultiFileReader: def __init__(self, *fileobjs) -> None: ... - def read(self, amt: Incomplete | None = None): ... + def read(self, amt=None): ... def seek(self, offset, whence=0) -> None: ... diff --git a/stubs/boltons/boltons/iterutils.pyi b/stubs/boltons/boltons/iterutils.pyi index 5e4ad8292868..ba1b7dd0293c 100644 --- a/stubs/boltons/boltons/iterutils.pyi +++ b/stubs/boltons/boltons/iterutils.pyi @@ -4,17 +4,15 @@ from collections.abc import Generator def is_iterable(obj) -> bool: ... def is_scalar(obj) -> bool: ... def is_collection(obj) -> bool: ... -def split(src, sep: Incomplete | None = None, maxsplit: Incomplete | None = None): ... -def split_iter( - src, sep: Incomplete | None = None, maxsplit: Incomplete | None = None -) -> Generator[Incomplete, None, Incomplete]: ... -def lstrip(iterable, strip_value: Incomplete | None = None): ... -def lstrip_iter(iterable, strip_value: Incomplete | None = None) -> Generator[Incomplete, None, None]: ... -def rstrip(iterable, strip_value: Incomplete | None = None): ... -def rstrip_iter(iterable, strip_value: Incomplete | None = None) -> Generator[Incomplete, None, None]: ... -def strip(iterable, strip_value: Incomplete | None = None): ... -def strip_iter(iterable, strip_value: Incomplete | None = None): ... -def chunked(src, size, count: Incomplete | None = None, **kw): ... +def split(src, sep=None, maxsplit=None): ... +def split_iter(src, sep=None, maxsplit=None) -> Generator[Incomplete, None, Incomplete]: ... +def lstrip(iterable, strip_value=None): ... +def lstrip_iter(iterable, strip_value=None) -> Generator[Incomplete, None, None]: ... +def rstrip(iterable, strip_value=None): ... +def rstrip_iter(iterable, strip_value=None) -> Generator[Incomplete, None, None]: ... +def strip(iterable, strip_value=None): ... +def strip_iter(iterable, strip_value=None): ... +def chunked(src, size, count=None, **kw): ... def chunked_iter(src, size, **kw) -> Generator[Incomplete, None, Incomplete]: ... def chunk_ranges( input_size: int, chunk_size: int, input_offset: int = 0, overlap_size: int = 0, align: bool = False @@ -23,19 +21,17 @@ def pairwise(src, end=...): ... def pairwise_iter(src, end=...): ... def windowed(src, size, fill=...): ... def windowed_iter(src, size, fill=...): ... -def xfrange(stop, start: Incomplete | None = None, step: float = 1.0) -> Generator[Incomplete, None, None]: ... -def frange(stop, start: Incomplete | None = None, step: float = 1.0): ... -def backoff(start, stop, count: Incomplete | None = None, factor: float = 2.0, jitter: bool = False): ... -def backoff_iter( - start, stop, count: Incomplete | None = None, factor: float = 2.0, jitter: bool = False -) -> Generator[Incomplete, None, None]: ... -def bucketize(src, key=..., value_transform: Incomplete | None = None, key_filter: Incomplete | None = None): ... +def xfrange(stop, start=None, step: float = 1.0) -> Generator[Incomplete, None, None]: ... +def frange(stop, start=None, step: float = 1.0): ... +def backoff(start, stop, count=None, factor: float = 2.0, jitter: bool = False): ... +def backoff_iter(start, stop, count=None, factor: float = 2.0, jitter: bool = False) -> Generator[Incomplete, None, None]: ... +def bucketize(src, key=..., value_transform=None, key_filter=None): ... def partition(src, key=...): ... -def unique(src, key: Incomplete | None = None): ... -def unique_iter(src, key: Incomplete | None = None) -> Generator[Incomplete, None, Incomplete]: ... -def redundant(src, key: Incomplete | None = None, groups: bool = False): ... -def one(src, default: Incomplete | None = None, key: Incomplete | None = None): ... -def first(iterable, default: Incomplete | None = None, key: Incomplete | None = None): ... +def unique(src, key=None): ... +def unique_iter(src, key=None) -> Generator[Incomplete, None, Incomplete]: ... +def redundant(src, key=None, groups: bool = False): ... +def one(src, default=None, key=None): ... +def first(iterable, default=None, key=None): ... def flatten_iter(iterable) -> Generator[Incomplete, None, None]: ... def flatten(iterable): ... def same(iterable, ref=...): ... @@ -73,11 +69,5 @@ class SequentialGUIDerator(GUIDerator): guid_iter: Incomplete seq_guid_iter: Incomplete -def soft_sorted( - iterable, - first: Incomplete | None = None, - last: Incomplete | None = None, - key: Incomplete | None = None, - reverse: bool = False, -): ... -def untyped_sorted(iterable, key: Incomplete | None = None, reverse: bool = False): ... +def soft_sorted(iterable, first=None, last=None, key=None, reverse: bool = False): ... +def untyped_sorted(iterable, key=None, reverse: bool = False): ... diff --git a/stubs/boltons/boltons/tableutils.pyi b/stubs/boltons/boltons/tableutils.pyi index f59606c0391d..19c2ee650767 100644 --- a/stubs/boltons/boltons/tableutils.pyi +++ b/stubs/boltons/boltons/tableutils.pyi @@ -38,21 +38,21 @@ class NamedTupleInputType(InputType): class Table: headers: Incomplete metadata: Incomplete - def __init__(self, data: Incomplete | None = None, headers=..., metadata: Incomplete | None = None) -> None: ... + def __init__(self, data=None, headers=..., metadata=None) -> None: ... def extend(self, data) -> None: ... @classmethod - def from_dict(cls, data, headers=..., max_depth: int = 1, metadata: Incomplete | None = None): ... + def from_dict(cls, data, headers=..., max_depth: int = 1, metadata=None): ... @classmethod - def from_list(cls, data, headers=..., max_depth: int = 1, metadata: Incomplete | None = None): ... + def from_list(cls, data, headers=..., max_depth: int = 1, metadata=None): ... @classmethod - def from_object(cls, data, headers=..., max_depth: int = 1, metadata: Incomplete | None = None): ... + def from_object(cls, data, headers=..., max_depth: int = 1, metadata=None): ... @classmethod def from_data(cls, data, headers=..., max_depth: int = 1, **kwargs): ... def __len__(self): ... def __getitem__(self, idx): ... def to_html( self, - orientation: Incomplete | None = None, + orientation=None, wrapped: bool = True, with_headers: bool = True, with_newlines: bool = True, @@ -60,6 +60,6 @@ class Table: max_depth: int = 1, ): ... def get_cell_html(self, value): ... - def to_text(self, with_headers: bool = True, maxlen: Incomplete | None = None): ... + def to_text(self, with_headers: bool = True, maxlen=None): ... __all__ = ["Table"] diff --git a/stubs/boltons/boltons/urlutils.pyi b/stubs/boltons/boltons/urlutils.pyi index fb4645226dcf..3947a0444bda 100644 --- a/stubs/boltons/boltons/urlutils.pyi +++ b/stubs/boltons/boltons/urlutils.pyi @@ -17,14 +17,14 @@ def quote_fragment_part(text, full_quote: bool = True): ... def quote_userinfo_part(text, full_quote: bool = True): ... def unquote(string, encoding: str = "utf-8", errors: str = "replace"): ... def unquote_to_bytes(string): ... -def register_scheme(text, uses_netloc: Incomplete | None = None, default_port: Incomplete | None = None) -> None: ... +def register_scheme(text, uses_netloc=None, default_port=None) -> None: ... def resolve_path_parts(path_parts): ... class cachedproperty: __doc__: Incomplete func: Incomplete def __init__(self, func) -> None: ... - def __get__(self, obj, objtype: Incomplete | None = None): ... + def __get__(self, obj, objtype=None): ... class URL: scheme: Incomplete @@ -38,15 +38,7 @@ class URL: def __init__(self, url: str = "") -> None: ... @classmethod def from_parts( - cls, - scheme: Incomplete | None = None, - host: Incomplete | None = None, - path_parts=(), - query_params=(), - fragment: str = "", - port: Incomplete | None = None, - username: Incomplete | None = None, - password: Incomplete | None = None, + cls, scheme=None, host=None, path_parts=(), query_params=(), fragment: str = "", port=None, username=None, password=None ): ... query_params: Incomplete qp: Incomplete diff --git a/stubs/braintree/braintree/braintree_gateway.pyi b/stubs/braintree/braintree/braintree_gateway.pyi index 5afb253f8639..c80300a7ec4c 100644 --- a/stubs/braintree/braintree/braintree_gateway.pyi +++ b/stubs/braintree/braintree/braintree_gateway.pyi @@ -63,4 +63,4 @@ class BraintreeGateway: verification: CreditCardVerificationGateway webhook_notification: WebhookNotificationGateway webhook_testing: WebhookTestingGateway - def __init__(self, config: Incomplete | None = None, **kwargs) -> None: ... + def __init__(self, config=None, **kwargs) -> None: ... diff --git a/stubs/braintree/braintree/client_token.pyi b/stubs/braintree/braintree/client_token.pyi index 214c90c4be3d..1e2f68f19a0b 100644 --- a/stubs/braintree/braintree/client_token.pyi +++ b/stubs/braintree/braintree/client_token.pyi @@ -1,7 +1,5 @@ -from _typeshed import Incomplete - class ClientToken: @staticmethod - def generate(params: Incomplete | None = None, gateway: Incomplete | None = None): ... + def generate(params=None, gateway=None): ... @staticmethod def generate_signature() -> list[str | dict[str, list[str]]]: ... diff --git a/stubs/braintree/braintree/client_token_gateway.pyi b/stubs/braintree/braintree/client_token_gateway.pyi index 6b0e8bda26f3..1f53d277caba 100644 --- a/stubs/braintree/braintree/client_token_gateway.pyi +++ b/stubs/braintree/braintree/client_token_gateway.pyi @@ -4,4 +4,4 @@ class ClientTokenGateway: gateway: Incomplete config: Incomplete def __init__(self, gateway) -> None: ... - def generate(self, params: Incomplete | None = None): ... + def generate(self, params=None): ... diff --git a/stubs/braintree/braintree/configuration.pyi b/stubs/braintree/braintree/configuration.pyi index 30af8103bc43..b480ffaa6781 100644 --- a/stubs/braintree/braintree/configuration.pyi +++ b/stubs/braintree/braintree/configuration.pyi @@ -12,7 +12,7 @@ class Configuration: public_key: str, private_key: str, *, - http_strategy: Incomplete | None = None, + http_strategy=None, timeout: int = 60, wrap_http_exceptions: bool = False, ) -> None: ... @@ -23,7 +23,7 @@ class Configuration: public_key: str, private_key: str, *, - http_strategy: Incomplete | None = None, + http_strategy=None, timeout: int = 60, wrap_http_exceptions: bool = False, ) -> Configuration: ... @@ -46,7 +46,7 @@ class Configuration: wrap_http_exceptions: bool def __init__( self, - environment: Incomplete | None = None, + environment=None, merchant_id: str | None = None, public_key: str | None = None, private_key: str | None = None, @@ -56,7 +56,7 @@ class Configuration: *args, timeout: int = 60, wrap_http_exceptions: bool = False, - http_strategy: Incomplete | None = None, + http_strategy=None, ) -> None: ... def base_merchant_path(self) -> str: ... def base_url(self) -> str: ... diff --git a/stubs/braintree/braintree/exchange_rate_quote_gateway.pyi b/stubs/braintree/braintree/exchange_rate_quote_gateway.pyi index 98449f0872c1..ee551915d1e8 100644 --- a/stubs/braintree/braintree/exchange_rate_quote_gateway.pyi +++ b/stubs/braintree/braintree/exchange_rate_quote_gateway.pyi @@ -8,6 +8,6 @@ class ExchangeRateQuoteGateway: gateway: Incomplete config: Incomplete graphql_client: Incomplete - def __init__(self, gateway, graphql_client: Incomplete | None = None) -> None: ... + def __init__(self, gateway, graphql_client=None) -> None: ... exchange_rate_quote_payload: ExchangeRateQuotePayload def generate(self, request) -> SuccessfulResult | ErrorResult | None: ... diff --git a/stubs/braintree/braintree/merchant_account/merchant_account.pyi b/stubs/braintree/braintree/merchant_account/merchant_account.pyi index dac21af07dcb..2fbe0ac80ed9 100644 --- a/stubs/braintree/braintree/merchant_account/merchant_account.pyi +++ b/stubs/braintree/braintree/merchant_account/merchant_account.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Final from braintree.resource import Resource @@ -18,7 +17,7 @@ class MerchantAccount(Resource): master_merchant_account: MerchantAccount def __init__(self, gateway, attributes) -> None: ... @staticmethod - def create(params: Incomplete | None = None): ... + def create(params=None): ... @staticmethod def update(id, attributes): ... @staticmethod diff --git a/stubs/braintree/braintree/payment_method.pyi b/stubs/braintree/braintree/payment_method.pyi index b87060d671d1..9d87458d2c30 100644 --- a/stubs/braintree/braintree/payment_method.pyi +++ b/stubs/braintree/braintree/payment_method.pyi @@ -12,7 +12,7 @@ class PaymentMethod(Resource): @staticmethod def update(payment_method_token: str, params) -> SuccessfulResult | ErrorResult: ... @staticmethod - def delete(payment_method_token: str, options: Incomplete | None = None) -> SuccessfulResult: ... + def delete(payment_method_token: str, options=None) -> SuccessfulResult: ... @staticmethod def create_signature() -> ( list[ diff --git a/stubs/braintree/braintree/payment_method_gateway.pyi b/stubs/braintree/braintree/payment_method_gateway.pyi index 7d8ab1876484..73393a851e7c 100644 --- a/stubs/braintree/braintree/payment_method_gateway.pyi +++ b/stubs/braintree/braintree/payment_method_gateway.pyi @@ -11,7 +11,7 @@ class PaymentMethodGateway: def create(self, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult: ... def find(self, payment_method_token: str) -> Resource: ... def update(self, payment_method_token: str, params) -> SuccessfulResult | ErrorResult: ... - def delete(self, payment_method_token: str, options: Incomplete | None = None) -> SuccessfulResult: ... + def delete(self, payment_method_token: str, options=None) -> SuccessfulResult: ... options: dict[str, Incomplete] - def grant(self, payment_method_token: str, options: Incomplete | None = None) -> SuccessfulResult | ErrorResult: ... + def grant(self, payment_method_token: str, options=None) -> SuccessfulResult | ErrorResult: ... def revoke(self, payment_method_token: str) -> SuccessfulResult | ErrorResult: ... diff --git a/stubs/braintree/braintree/paypal_account.pyi b/stubs/braintree/braintree/paypal_account.pyi index c24ebba39820..984bb08de2d8 100644 --- a/stubs/braintree/braintree/paypal_account.pyi +++ b/stubs/braintree/braintree/paypal_account.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from braintree.error_result import ErrorResult from braintree.resource import Resource from braintree.subscription import Subscription @@ -11,7 +9,7 @@ class PayPalAccount(Resource): @staticmethod def delete(paypal_account_token: str) -> SuccessfulResult: ... @staticmethod - def update(paypal_account_token: str, params: Incomplete | None = None) -> SuccessfulResult | ErrorResult | None: ... + def update(paypal_account_token: str, params=None) -> SuccessfulResult | ErrorResult | None: ... @staticmethod def signature() -> list[str | dict[str, list[str]]]: ... subscriptions: list[Subscription] diff --git a/stubs/braintree/braintree/paypal_account_gateway.pyi b/stubs/braintree/braintree/paypal_account_gateway.pyi index 471601f27e67..873cca8b10d1 100644 --- a/stubs/braintree/braintree/paypal_account_gateway.pyi +++ b/stubs/braintree/braintree/paypal_account_gateway.pyi @@ -10,4 +10,4 @@ class PayPalAccountGateway: def __init__(self, gateway) -> None: ... def find(self, paypal_account_token: str) -> PayPalAccount | None: ... def delete(self, paypal_account_token: str) -> SuccessfulResult: ... - def update(self, paypal_account_token: str, params: Incomplete | None = None) -> SuccessfulResult | ErrorResult | None: ... + def update(self, paypal_account_token: str, params=None) -> SuccessfulResult | ErrorResult | None: ... diff --git a/stubs/braintree/braintree/plan.pyi b/stubs/braintree/braintree/plan.pyi index 4320bf8af9d9..47de7b28c147 100644 --- a/stubs/braintree/braintree/plan.pyi +++ b/stubs/braintree/braintree/plan.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from braintree.add_on import AddOn from braintree.discount import Discount from braintree.resource import Resource @@ -11,11 +9,11 @@ class Plan(Resource): @staticmethod def all(): ... @staticmethod - def create(params: Incomplete | None = None): ... + def create(params=None): ... @staticmethod def find(subscription_id): ... @staticmethod - def update(subscription_id, params: Incomplete | None = None): ... + def update(subscription_id, params=None): ... @staticmethod def create_signature(): ... @staticmethod diff --git a/stubs/braintree/braintree/plan_gateway.pyi b/stubs/braintree/braintree/plan_gateway.pyi index 0c021ab7fb67..8d4416170c5d 100644 --- a/stubs/braintree/braintree/plan_gateway.pyi +++ b/stubs/braintree/braintree/plan_gateway.pyi @@ -5,6 +5,6 @@ class PlanGateway: config: Incomplete def __init__(self, gateway) -> None: ... def all(self): ... - def create(self, params: Incomplete | None = None): ... + def create(self, params=None): ... def find(self, plan_id): ... - def update(self, plan_id, params: Incomplete | None = None): ... + def update(self, plan_id, params=None): ... diff --git a/stubs/braintree/braintree/settlement_batch_summary.pyi b/stubs/braintree/braintree/settlement_batch_summary.pyi index e8e46e8be9ee..0e48629a28d1 100644 --- a/stubs/braintree/braintree/settlement_batch_summary.pyi +++ b/stubs/braintree/braintree/settlement_batch_summary.pyi @@ -1,7 +1,5 @@ -from _typeshed import Incomplete - from braintree.resource import Resource class SettlementBatchSummary(Resource): @staticmethod - def generate(settlement_date, group_by_custom_field: Incomplete | None = None): ... + def generate(settlement_date, group_by_custom_field=None): ... diff --git a/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi b/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi index 9ee140a02e51..09c324ea0d3e 100644 --- a/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi +++ b/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi @@ -4,4 +4,4 @@ class SettlementBatchSummaryGateway: gateway: Incomplete config: Incomplete def __init__(self, gateway) -> None: ... - def generate(self, settlement_date, group_by_custom_field: Incomplete | None = None): ... + def generate(self, settlement_date, group_by_custom_field=None): ... diff --git a/stubs/braintree/braintree/subscription.pyi b/stubs/braintree/braintree/subscription.pyi index 6bb0ff0af6d0..98acf134f39d 100644 --- a/stubs/braintree/braintree/subscription.pyi +++ b/stubs/braintree/braintree/subscription.pyi @@ -27,15 +27,15 @@ class Subscription(Resource): Pending: Final = "Pending" @staticmethod - def create(params: Incomplete | None = None): ... + def create(params=None): ... @staticmethod def create_signature(): ... @staticmethod def find(subscription_id): ... @staticmethod - def retry_charge(subscription_id, amount: Incomplete | None = None, submit_for_settlement: bool = False): ... + def retry_charge(subscription_id, amount=None, submit_for_settlement: bool = False): ... @staticmethod - def update(subscription_id, params: Incomplete | None = None): ... + def update(subscription_id, params=None): ... @staticmethod def cancel(subscription_id): ... @staticmethod diff --git a/stubs/braintree/braintree/subscription_gateway.pyi b/stubs/braintree/braintree/subscription_gateway.pyi index e77c4df80a8a..37dfbae24b93 100644 --- a/stubs/braintree/braintree/subscription_gateway.pyi +++ b/stubs/braintree/braintree/subscription_gateway.pyi @@ -5,8 +5,8 @@ class SubscriptionGateway: config: Incomplete def __init__(self, gateway) -> None: ... def cancel(self, subscription_id): ... - def create(self, params: Incomplete | None = None): ... + def create(self, params=None): ... def find(self, subscription_id): ... - def retry_charge(self, subscription_id, amount: Incomplete | None = None, submit_for_settlement: bool = False): ... + def retry_charge(self, subscription_id, amount=None, submit_for_settlement: bool = False): ... def search(self, *query): ... - def update(self, subscription_id, params: Incomplete | None = None): ... + def update(self, subscription_id, params=None): ... diff --git a/stubs/braintree/braintree/transaction.pyi b/stubs/braintree/braintree/transaction.pyi index e2dc4045b9d4..9fe08991b64a 100644 --- a/stubs/braintree/braintree/transaction.pyi +++ b/stubs/braintree/braintree/transaction.pyi @@ -99,19 +99,19 @@ class Transaction(Resource): @staticmethod def clone_transaction(transaction_id, params): ... @staticmethod - def credit(params: Incomplete | None = None): ... + def credit(params=None): ... @staticmethod def find(transaction_id): ... @staticmethod - def refund(transaction_id, amount_or_options: Incomplete | None = None): ... + def refund(transaction_id, amount_or_options=None): ... @staticmethod - def sale(params: Incomplete | None = None): ... + def sale(params=None): ... @staticmethod def search(*query): ... @staticmethod - def submit_for_settlement(transaction_id, amount: Incomplete | None = None, params: Incomplete | None = None): ... + def submit_for_settlement(transaction_id, amount=None, params=None): ... @staticmethod - def update_details(transaction_id, params: Incomplete | None = None): ... + def update_details(transaction_id, params=None): ... @staticmethod def void(transaction_id): ... @staticmethod @@ -127,13 +127,13 @@ class Transaction(Resource): @staticmethod def package_tracking_signature(): ... @staticmethod - def package_tracking(transaction_id, params: Incomplete | None = None): ... + def package_tracking(transaction_id, params=None): ... @staticmethod def update_details_signature(): ... @staticmethod def refund_signature(): ... @staticmethod - def submit_for_partial_settlement(transaction_id, amount, params: Incomplete | None = None): ... + def submit_for_partial_settlement(transaction_id, amount, params=None): ... amount: Decimal tax_amount: Decimal | None discount_amount: Decimal | None diff --git a/stubs/braintree/braintree/transaction_gateway.pyi b/stubs/braintree/braintree/transaction_gateway.pyi index a0b2cb8cbaf0..a6ad5f3f6c97 100644 --- a/stubs/braintree/braintree/transaction_gateway.pyi +++ b/stubs/braintree/braintree/transaction_gateway.pyi @@ -10,11 +10,11 @@ class TransactionGateway: def create(self, params): ... def credit(self, params): ... def find(self, transaction_id): ... - def refund(self, transaction_id, amount_or_options: Incomplete | None = None): ... + def refund(self, transaction_id, amount_or_options=None): ... def sale(self, params): ... def search(self, *query): ... - def submit_for_settlement(self, transaction_id, amount: Incomplete | None = None, params: Incomplete | None = None): ... - def update_details(self, transaction_id, params: Incomplete | None = None): ... - def submit_for_partial_settlement(self, transaction_id, amount, params: Incomplete | None = None): ... - def package_tracking(self, transaction_id, params: Incomplete | None = None): ... + def submit_for_settlement(self, transaction_id, amount=None, params=None): ... + def update_details(self, transaction_id, params=None): ... + def submit_for_partial_settlement(self, transaction_id, amount, params=None): ... + def package_tracking(self, transaction_id, params=None): ... def void(self, transaction_id): ... diff --git a/stubs/braintree/braintree/util/graphql_client.pyi b/stubs/braintree/braintree/util/graphql_client.pyi index e893ae0d1e8f..35c5d3def76c 100644 --- a/stubs/braintree/braintree/util/graphql_client.pyi +++ b/stubs/braintree/braintree/util/graphql_client.pyi @@ -27,7 +27,7 @@ class GraphQLClient(Http): def raise_exception_for_graphql_error(response: _Response) -> None: ... graphql_headers: dict[str, str] def __init__(self, config: Configuration | None = None, environment: Environment | None = None) -> None: ... - def query(self, definition, variables: Incomplete | None = None, operation_name: Incomplete | None = None): ... + def query(self, definition, variables=None, operation_name=None): ... @staticmethod def get_validation_errors(response) -> _ValidationErrors | None: ... @staticmethod diff --git a/stubs/caldav/caldav/objects.pyi b/stubs/caldav/caldav/objects.pyi index bcdcaff036fc..329ee2ce973a 100644 --- a/stubs/caldav/caldav/objects.pyi +++ b/stubs/caldav/caldav/objects.pyi @@ -39,17 +39,15 @@ class DAVObject: def canonical_url(self) -> str: ... def children(self, type: str | None = None) -> list[tuple[URL, Incomplete, Incomplete]]: ... def get_property(self, prop, use_cached: bool = False, **passthrough) -> Incomplete | None: ... - def get_properties( - self, props: Incomplete | None = None, depth: int = 0, parse_response_xml: bool = True, parse_props: bool = True - ): ... - def set_properties(self, props: Incomplete | None = None) -> Self: ... + def get_properties(self, props=None, depth: int = 0, parse_response_xml: bool = True, parse_props: bool = True): ... + def set_properties(self, props=None) -> Self: ... def save(self) -> Self: ... def delete(self) -> None: ... class CalendarSet(DAVObject): def calendars(self) -> list[Calendar]: ... def make_calendar( - self, name: str | None = None, cal_id: str | None = None, supported_calendar_component_set: Incomplete | None = None + self, name: str | None = None, cal_id: str | None = None, supported_calendar_component_set=None ) -> Calendar: ... def calendar(self, name: str | None = None, cal_id: str | None = None) -> Calendar: ... @@ -57,7 +55,7 @@ class Principal(DAVObject): def __init__(self, client: DAVClient | None = None, url: str | ParseResult | SplitResult | URL | None = None) -> None: ... def calendars(self) -> list[Calendar]: ... def make_calendar( - self, name: str | None = None, cal_id: str | None = None, supported_calendar_component_set: Incomplete | None = None + self, name: str | None = None, cal_id: str | None = None, supported_calendar_component_set=None ) -> Calendar: ... def calendar(self, name: str | None = None, cal_id: str | None = None, cal_url: str | None = None) -> Calendar: ... def get_vcal_address(self) -> _VCalAddress: ... @@ -175,16 +173,14 @@ class Calendar(DAVObject): def todos( self, sort_keys: Iterable[str] = ("due", "priority"), include_completed: bool = False, sort_key: str | None = None ) -> list[Todo]: ... - def event_by_url(self, href, data: Incomplete | None = None) -> Event: ... + def event_by_url(self, href, data=None) -> Event: ... def object_by_uid(self, uid: str, comp_filter: CompFilter | None = None, comp_class: _CompClass | None = None) -> Event: ... def todo_by_uid(self, uid: str) -> CalendarObjectResource: ... def event_by_uid(self, uid: str) -> CalendarObjectResource: ... def journal_by_uid(self, uid: str) -> CalendarObjectResource: ... event = event_by_uid def events(self) -> list[Event]: ... - def objects_by_sync_token( - self, sync_token: Incomplete | None = None, load_objects: bool = False - ) -> SynchronizableCalendarObjectCollection: ... + def objects_by_sync_token(self, sync_token=None, load_objects: bool = False) -> SynchronizableCalendarObjectCollection: ... objects = objects_by_sync_token def journals(self) -> list[Journal]: ... @@ -215,10 +211,10 @@ class CalendarObjectResource(DAVObject): self, client: DAVClient | None = None, url: str | ParseResult | SplitResult | URL | None = None, - data: Incomplete | None = None, - parent: Incomplete | None = None, - id: Incomplete | None = None, - props: Incomplete | None = None, + data=None, + parent=None, + id=None, + props=None, ) -> None: ... def add_organizer(self) -> None: ... def split_expanded(self) -> list[Self]: ... @@ -232,12 +228,12 @@ class CalendarObjectResource(DAVObject): ) -> defaultdict[str, set[str]]: ... def add_attendee(self, attendee, no_default_parameters: bool = False, **parameters) -> None: ... def is_invite_request(self) -> bool: ... - def accept_invite(self, calendar: Incomplete | None = None) -> None: ... - def decline_invite(self, calendar: Incomplete | None = None) -> None: ... - def tentatively_accept_invite(self, calendar: Incomplete | None = None) -> None: ... - def copy(self, keep_uid: bool = False, new_parent: Incomplete | None = None) -> Self: ... + def accept_invite(self, calendar=None) -> None: ... + def decline_invite(self, calendar=None) -> None: ... + def tentatively_accept_invite(self, calendar=None) -> None: ... + def copy(self, keep_uid: bool = False, new_parent=None) -> Self: ... def load(self, only_if_unloaded: bool = False) -> Self: ... - def change_attendee_status(self, attendee: Incomplete | None = None, **kwargs) -> None: ... + def change_attendee_status(self, attendee=None, **kwargs) -> None: ... def save( self, no_overwrite: bool = False, @@ -256,9 +252,7 @@ class Event(CalendarObjectResource): ... class Journal(CalendarObjectResource): ... class FreeBusy(CalendarObjectResource): - def __init__( - self, parent, data, url: str | ParseResult | SplitResult | URL | None = None, id: Incomplete | None = None - ) -> None: ... + def __init__(self, parent, data, url: str | ParseResult | SplitResult | URL | None = None, id=None) -> None: ... class Todo(CalendarObjectResource): def complete( diff --git a/stubs/cffi/cffi/api.pyi b/stubs/cffi/cffi/api.pyi index 5caf266535c0..b3967e1612fe 100644 --- a/stubs/cffi/cffi/api.pyi +++ b/stubs/cffi/cffi/api.pyi @@ -1,6 +1,6 @@ import sys import types -from _typeshed import Incomplete, ReadableBuffer, WriteableBuffer +from _typeshed import ReadableBuffer, WriteableBuffer from collections.abc import Callable, Hashable from typing import Any, Literal, TypeVar, overload from typing_extensions import TypeAlias @@ -36,7 +36,7 @@ class FFI: def sizeof(self, cdecl: str | CData) -> int: ... def alignof(self, cdecl: str | CData) -> int: ... def offsetof(self, cdecl: str | CData, *fields_or_indexes: str | int) -> int: ... - def new(self, cdecl: str | CType, init: Incomplete | None = None) -> CData: ... + def new(self, cdecl: str | CType, init=None) -> CData: ... def new_allocator( self, alloc: Callable[[int], CData] | None = None, diff --git a/stubs/cffi/cffi/backend_ctypes.pyi b/stubs/cffi/cffi/backend_ctypes.pyi index 800ddb7e7011..7faef0c73d59 100644 --- a/stubs/cffi/cffi/backend_ctypes.pyi +++ b/stubs/cffi/cffi/backend_ctypes.pyi @@ -69,7 +69,7 @@ class CTypesBackend: typeof: Incomplete def getcname(self, BType, replace_with): ... def typeoffsetof(self, BType, fieldname, num: int = 0): ... - def rawaddressof(self, BTypePtr, cdata, offset: Incomplete | None = None): ... + def rawaddressof(self, BTypePtr, cdata, offset=None): ... class CTypesLibrary: backend: Incomplete diff --git a/stubs/cffi/cffi/cparser.pyi b/stubs/cffi/cffi/cparser.pyi index 63946020c53e..a42b2ddc0406 100644 --- a/stubs/cffi/cffi/cparser.pyi +++ b/stubs/cffi/cffi/cparser.pyi @@ -6,9 +6,7 @@ CDEF_SOURCE_STRING: str class Parser: def __init__(self) -> None: ... def convert_pycparser_error(self, e, csource) -> None: ... - def parse( - self, csource, override: bool = False, packed: bool = False, pack: Incomplete | None = None, dllexport: bool = False - ) -> None: ... + def parse(self, csource, override: bool = False, packed: bool = False, pack=None, dllexport: bool = False) -> None: ... def parse_type(self, cdecl): ... def parse_type_and_quals(self, cdecl): ... def include(self, other) -> None: ... diff --git a/stubs/cffi/cffi/ffiplatform.pyi b/stubs/cffi/cffi/ffiplatform.pyi index bb0e71bcb34c..f7fe46729b32 100644 --- a/stubs/cffi/cffi/ffiplatform.pyi +++ b/stubs/cffi/cffi/ffiplatform.pyi @@ -1,10 +1,10 @@ -from _typeshed import Incomplete, StrOrBytesPath +from _typeshed import StrOrBytesPath from typing import Any, Final LIST_OF_FILE_NAMES: Final[list[str]] def get_extension(srcfilename, modname, sources=(), **kwds): ... -def compile(tmpdir, ext, compiler_verbose: int = 0, debug: Incomplete | None = None): ... +def compile(tmpdir, ext, compiler_verbose: int = 0, debug=None): ... def maybe_relative_path(path: StrOrBytesPath) -> StrOrBytesPath | str: ... int_or_long = int diff --git a/stubs/cffi/cffi/model.pyi b/stubs/cffi/cffi/model.pyi index 3c462dfa8661..5a4e7cc82f19 100644 --- a/stubs/cffi/cffi/model.pyi +++ b/stubs/cffi/cffi/model.pyi @@ -65,7 +65,7 @@ class BaseFunctionType(BaseType): ellipsis: Incomplete abi: Incomplete c_name_with_marker: str - def __init__(self, args, result, ellipsis, abi: Incomplete | None = None) -> None: ... + def __init__(self, args, result, ellipsis, abi=None) -> None: ... class RawFunctionType(BaseFunctionType): is_raw_function: bool @@ -123,7 +123,7 @@ class StructOrUnion(StructOrUnionOrEnum): fldtypes: Incomplete fldbitsize: Incomplete fldquals: Incomplete - def __init__(self, name, fldnames, fldtypes, fldbitsize, fldquals: Incomplete | None = None) -> None: ... + def __init__(self, name, fldnames, fldtypes, fldbitsize, fldquals=None) -> None: ... def anonymous_struct_fields(self) -> Generator[StructOrUnion, None, None]: ... def enumfields(self, expand_anonymous_struct_union: bool = True) -> Generator[Incomplete, None, None]: ... def force_flatten(self) -> None: ... @@ -146,7 +146,7 @@ class EnumType(StructOrUnionOrEnum): enumerators: Incomplete enumvalues: Incomplete baseinttype: Incomplete - def __init__(self, name, enumerators, enumvalues, baseinttype: Incomplete | None = None) -> None: ... + def __init__(self, name, enumerators, enumvalues, baseinttype=None) -> None: ... forcename: str | None def force_the_name(self, forcename: str | None) -> None: ... def check_not_partial(self) -> None: ... diff --git a/stubs/cffi/cffi/recompiler.pyi b/stubs/cffi/cffi/recompiler.pyi index d4c3d03bf48d..729975b862db 100644 --- a/stubs/cffi/cffi/recompiler.pyi +++ b/stubs/cffi/cffi/recompiler.pyi @@ -86,7 +86,7 @@ def recompile( preamble: str | None, tmpdir: str = ".", call_c_compiler: bool = True, - c_file: Incomplete | None = None, + c_file=None, source_extension: str = ".c", extradir: StrPath | None = None, compiler_verbose: int = 1, diff --git a/stubs/cffi/cffi/vengine_cpy.pyi b/stubs/cffi/cffi/vengine_cpy.pyi index 0ff656759f2d..e9cd0afa70c0 100644 --- a/stubs/cffi/cffi/vengine_cpy.pyi +++ b/stubs/cffi/cffi/vengine_cpy.pyi @@ -8,6 +8,6 @@ class VCPythonEngine: def find_module(self, module_name, path, so_suffixes): ... def collect_types(self) -> None: ... def write_source_to_f(self) -> None: ... - def load_library(self, flags: Incomplete | None = None): ... + def load_library(self, flags=None): ... cffimod_header: str diff --git a/stubs/cffi/cffi/verifier.pyi b/stubs/cffi/cffi/verifier.pyi index a56e9579e413..6901a0a3ba70 100644 --- a/stubs/cffi/cffi/verifier.pyi +++ b/stubs/cffi/cffi/verifier.pyi @@ -29,7 +29,7 @@ class Verifier: relative_to: os.PathLike[AnyStr] | None = None, **kwds: list[str] | tuple[str], ) -> None: ... - def write_source(self, file: Incomplete | None = None) -> None: ... + def write_source(self, file=None) -> None: ... def compile_module(self) -> None: ... def load_library(self): ... def get_module_name(self) -> str: ... diff --git a/stubs/corus/corus/io.pyi b/stubs/corus/corus/io.pyi index 0dfb4f6ea63f..8795b3bce8c4 100644 --- a/stubs/corus/corus/io.pyi +++ b/stubs/corus/corus/io.pyi @@ -14,7 +14,7 @@ def load_xz_lines(path): ... def list_zip(path): ... def load_zip_lines(path, name, encoding: str = "utf8") -> Generator[Incomplete]: ... def load_zip_texts(path, names, encoding: str = "utf8") -> Generator[Incomplete]: ... -def parse_csv(lines, delimiter: str = ",", max_field: Incomplete | None = None): ... +def parse_csv(lines, delimiter: str = ",", max_field=None): ... def parse_tsv(lines): ... def skip_header(rows): ... def dict_csv(rows) -> Generator[Incomplete]: ... diff --git a/stubs/corus/corus/readme.pyi b/stubs/corus/corus/readme.pyi index dd02343ee0ee..ae101bfe7c8a 100644 --- a/stubs/corus/corus/readme.pyi +++ b/stubs/corus/corus/readme.pyi @@ -11,7 +11,7 @@ def is_command(step, commands=("wget", "unzip", "unrar", "rm", "mv", "tar")): .. def format_bytes(value): ... def format_count(value): ... def unfold_metas(items) -> Generator[Incomplete]: ... -def format_metas_(metas, nbviewer: Incomplete | None = None) -> Generator[Incomplete]: ... -def format_metas(metas, url: Incomplete | None = None): ... +def format_metas_(metas, nbviewer=None) -> Generator[Incomplete]: ... +def format_metas(metas, url=None): ... def show_html(html) -> None: ... def patch_readme(html, path) -> None: ... diff --git a/stubs/corus/corus/sources/lenta.pyi b/stubs/corus/corus/sources/lenta.pyi index 58aff5b5df83..70301bbd4fb4 100644 --- a/stubs/corus/corus/sources/lenta.pyi +++ b/stubs/corus/corus/sources/lenta.pyi @@ -11,7 +11,7 @@ class LentaRecord(Record): topic: Incomplete tags: Incomplete date: Incomplete - def __init__(self, url, title, text, topic, tags, date: Incomplete | None = None) -> None: ... + def __init__(self, url, title, text, topic, tags, date=None) -> None: ... def parse_lenta(lines) -> Generator[Incomplete]: ... def parse_lenta2(lines) -> Generator[Incomplete]: ... diff --git a/stubs/corus/corus/sources/meta.pyi b/stubs/corus/corus/sources/meta.pyi index c8b50c267f27..e343c67b16b7 100644 --- a/stubs/corus/corus/sources/meta.pyi +++ b/stubs/corus/corus/sources/meta.pyi @@ -11,16 +11,7 @@ class Meta(Record): instruction: Incomplete tags: Incomplete functions: Incomplete - def __init__( - self, - title, - url: Incomplete | None = None, - description: Incomplete | None = None, - stats: Incomplete | None = None, - instruction=(), - tags=(), - functions=(), - ) -> None: ... + def __init__(self, title, url=None, description=None, stats=None, instruction=(), tags=(), functions=()) -> None: ... class Group(Record): __attributes__: Incomplete @@ -29,9 +20,7 @@ class Group(Record): description: Incomplete instruction: Incomplete metas: Incomplete - def __init__( - self, title, url: Incomplete | None = None, description: Incomplete | None = None, instruction=(), metas=() - ) -> None: ... + def __init__(self, title, url=None, description=None, instruction=(), metas=()) -> None: ... def is_group(item): ... @@ -39,7 +28,7 @@ class Stats(Record): __attributes__: Incomplete bytes: Incomplete count: Incomplete - def __init__(self, bytes: Incomplete | None = None, count: Incomplete | None = None) -> None: ... + def __init__(self, bytes=None, count=None) -> None: ... NER: str NEWS: str diff --git a/stubs/corus/corus/sources/morphoru.pyi b/stubs/corus/corus/sources/morphoru.pyi index 3010d097b255..447fb4c4a5e0 100644 --- a/stubs/corus/corus/sources/morphoru.pyi +++ b/stubs/corus/corus/sources/morphoru.pyi @@ -17,7 +17,7 @@ class MorphoToken(Record): pos: Incomplete feats: Incomplete feats2: Incomplete - def __init__(self, text, lemma, pos, feats, feats2: Incomplete | None = None) -> None: ... + def __init__(self, text, lemma, pos, feats, feats2=None) -> None: ... def load_morphoru_gicrya(path): ... def load_morphoru_rnc(path): ... diff --git a/stubs/corus/corus/sources/taiga/arzamas.pyi b/stubs/corus/corus/sources/taiga/arzamas.pyi index 2b653b0c3678..f8b5500537c6 100644 --- a/stubs/corus/corus/sources/taiga/arzamas.pyi +++ b/stubs/corus/corus/sources/taiga/arzamas.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - __all__ = ["load_taiga_arzamas_metas", "load_taiga_arzamas"] def load_taiga_arzamas_metas(path, offset: int = 0, count: int = 1): ... -def load_taiga_arzamas(path, metas: Incomplete | None = None, offset: int = 144896, count: int = 311): ... +def load_taiga_arzamas(path, metas=None, offset: int = 144896, count: int = 311): ... diff --git a/stubs/corus/corus/sources/taiga/common.pyi b/stubs/corus/corus/sources/taiga/common.pyi index 34fd4cc4ab9c..cedb4a68ec9f 100644 --- a/stubs/corus/corus/sources/taiga/common.pyi +++ b/stubs/corus/corus/sources/taiga/common.pyi @@ -25,15 +25,7 @@ class Author(Record): profession: Incomplete about: Incomplete url: Incomplete - def __init__( - self, - name, - readers: Incomplete | None = None, - texts: Incomplete | None = None, - profession: Incomplete | None = None, - about: Incomplete | None = None, - url: Incomplete | None = None, - ) -> None: ... + def __init__(self, name, readers=None, texts=None, profession=None, about=None, url=None) -> None: ... class Meta(Record): __attributes__: Incomplete @@ -51,16 +43,16 @@ class Meta(Record): def __init__( self, id, - timestamp: Incomplete | None = None, - tags: Incomplete | None = None, - themes: Incomplete | None = None, - rubric: Incomplete | None = None, - genre: Incomplete | None = None, - topic: Incomplete | None = None, - author: Incomplete | None = None, - lang: Incomplete | None = None, - title: Incomplete | None = None, - url: Incomplete | None = None, + timestamp=None, + tags=None, + themes=None, + rubric=None, + genre=None, + topic=None, + author=None, + lang=None, + title=None, + url=None, ) -> None: ... def load_tar(path, offset: int = 0) -> Generator[Incomplete]: ... @@ -73,5 +65,5 @@ def load_texts(path, pattern, offset, count, parse_id, load, encoding: str = "ut def parse_filename_id(path): ... def load_tar_texts(path, pattern, offset, count, parse_id=...): ... def load_zip_texts(path, pattern, offset, count, parse_id=...): ... -def merge_metas(records, metas: Incomplete | None = None) -> Generator[Incomplete]: ... +def merge_metas(records, metas=None) -> Generator[Incomplete]: ... def patch_month(date, months): ... diff --git a/stubs/corus/corus/sources/taiga/fontanka.pyi b/stubs/corus/corus/sources/taiga/fontanka.pyi index 0b04f867fe5a..1870bd9270c8 100644 --- a/stubs/corus/corus/sources/taiga/fontanka.pyi +++ b/stubs/corus/corus/sources/taiga/fontanka.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - __all__ = ["load_taiga_fontanka_metas", "load_taiga_fontanka"] def load_taiga_fontanka_metas(path, offset: int = 0, count=13): ... -def load_taiga_fontanka(path, metas: Incomplete | None = None, offset: int = 306359296, count: int = 342683): ... +def load_taiga_fontanka(path, metas=None, offset: int = 306359296, count: int = 342683): ... diff --git a/stubs/corus/corus/sources/taiga/interfax.pyi b/stubs/corus/corus/sources/taiga/interfax.pyi index 9957c1c760a4..6425b7aab3d3 100644 --- a/stubs/corus/corus/sources/taiga/interfax.pyi +++ b/stubs/corus/corus/sources/taiga/interfax.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - __all__ = ["load_taiga_interfax_metas", "load_taiga_interfax"] def load_taiga_interfax_metas(path, offset: int = 0, count: int = 1): ... -def load_taiga_interfax(path, metas: Incomplete | None = None, offset: int = 11447296, count: int = 46429): ... +def load_taiga_interfax(path, metas=None, offset: int = 11447296, count: int = 46429): ... diff --git a/stubs/corus/corus/sources/taiga/kp.pyi b/stubs/corus/corus/sources/taiga/kp.pyi index ed3d7f7024bc..6301a4c6ef63 100644 --- a/stubs/corus/corus/sources/taiga/kp.pyi +++ b/stubs/corus/corus/sources/taiga/kp.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - __all__ = ["load_taiga_kp_metas", "load_taiga_kp"] def load_taiga_kp_metas(path, offset: int = 0, count: int = 1): ... -def load_taiga_kp(path, metas: Incomplete | None = None, offset: int = 13042176, count: int = 45503): ... +def load_taiga_kp(path, metas=None, offset: int = 13042176, count: int = 45503): ... diff --git a/stubs/corus/corus/sources/taiga/lenta.pyi b/stubs/corus/corus/sources/taiga/lenta.pyi index a46dc6187c6c..96b280c96bba 100644 --- a/stubs/corus/corus/sources/taiga/lenta.pyi +++ b/stubs/corus/corus/sources/taiga/lenta.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - __all__ = ["load_taiga_lenta_metas", "load_taiga_lenta"] def load_taiga_lenta_metas(path, offset: int = 0, count: int = 1): ... -def load_taiga_lenta(path, metas: Incomplete | None = None, offset: int = 12800000, count: int = 36446): ... +def load_taiga_lenta(path, metas=None, offset: int = 12800000, count: int = 36446): ... diff --git a/stubs/corus/corus/sources/taiga/magazines.pyi b/stubs/corus/corus/sources/taiga/magazines.pyi index b536568f19ed..ee36599ae8b3 100644 --- a/stubs/corus/corus/sources/taiga/magazines.pyi +++ b/stubs/corus/corus/sources/taiga/magazines.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - __all__ = ["load_taiga_magazines_metas", "load_taiga_magazines"] def load_taiga_magazines_metas(path, offset: int = 0, count: int = 36): ... -def load_taiga_magazines(path, metas: Incomplete | None = None, offset: int = 7292416, count: int = 39890): ... +def load_taiga_magazines(path, metas=None, offset: int = 7292416, count: int = 39890): ... diff --git a/stubs/corus/corus/sources/taiga/nplus1.pyi b/stubs/corus/corus/sources/taiga/nplus1.pyi index b83240f2a600..7e89a05dd643 100644 --- a/stubs/corus/corus/sources/taiga/nplus1.pyi +++ b/stubs/corus/corus/sources/taiga/nplus1.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - __all__ = ["load_taiga_nplus1_metas", "load_taiga_nplus1"] def load_taiga_nplus1_metas(path, offset: int = 0, count: int = 1): ... -def load_taiga_nplus1(path, metas: Incomplete | None = None, offset: int = 1919488, count: int = 7696): ... +def load_taiga_nplus1(path, metas=None, offset: int = 1919488, count: int = 7696): ... diff --git a/stubs/corus/corus/sources/taiga/proza.pyi b/stubs/corus/corus/sources/taiga/proza.pyi index 2e584686b345..3389ea294cf6 100644 --- a/stubs/corus/corus/sources/taiga/proza.pyi +++ b/stubs/corus/corus/sources/taiga/proza.pyi @@ -1,8 +1,6 @@ -from _typeshed import Incomplete - __all__ = ["load_taiga_proza_metas", "load_taiga_proza", "load_taiga_stihi_metas", "load_taiga_stihi"] def load_taiga_proza_metas(path, offset: int = 0, count=13): ... def load_taiga_stihi_metas(path, offset: int = 0, count=3): ... -def load_taiga_proza(path, metas: Incomplete | None = None, offset: int = ..., count: int = ...): ... -def load_taiga_stihi(path, metas: Incomplete | None = None, offset: int = ..., count: int = ...): ... +def load_taiga_proza(path, metas=None, offset: int = ..., count: int = ...): ... +def load_taiga_stihi(path, metas=None, offset: int = ..., count: int = ...): ... diff --git a/stubs/corus/corus/sources/taiga/subtitles.pyi b/stubs/corus/corus/sources/taiga/subtitles.pyi index b2066c0d5ab9..356c8dcd6c32 100644 --- a/stubs/corus/corus/sources/taiga/subtitles.pyi +++ b/stubs/corus/corus/sources/taiga/subtitles.pyi @@ -3,4 +3,4 @@ from collections.abc import Generator def parse_metas(items) -> Generator[Incomplete]: ... def load_taiga_subtitles_metas(path, offset: int = 0, count: int = 1): ... -def load_taiga_subtitles(path, metas: Incomplete | None = None, offset: int = 2113024, count: int = 19011): ... +def load_taiga_subtitles(path, metas=None, offset: int = 2113024, count: int = 19011): ... diff --git a/stubs/corus/corus/third/WikiExtractor.pyi b/stubs/corus/corus/third/WikiExtractor.pyi index bda32a5d62a1..78053703104c 100644 --- a/stubs/corus/corus/third/WikiExtractor.pyi +++ b/stubs/corus/corus/third/WikiExtractor.pyi @@ -73,7 +73,7 @@ class Frame: args: Incomplete prev: Incomplete depth: Incomplete - def __init__(self, title: str = "", args=[], prev: Incomplete | None = None) -> None: ... + def __init__(self, title: str = "", args=[], prev=None) -> None: ... def push(self, title, args): ... def pop(self): ... @@ -147,9 +147,9 @@ class Infix: ROUND: Incomplete def sharp_expr(extr, expr): ... -def sharp_if(extr, testValue, valueIfTrue, valueIfFalse: Incomplete | None = None, *args): ... -def sharp_ifeq(extr, lvalue, rvalue, valueIfTrue, valueIfFalse: Incomplete | None = None, *args): ... -def sharp_iferror(extr, test, then: str = "", Else: Incomplete | None = None, *args): ... +def sharp_if(extr, testValue, valueIfTrue, valueIfFalse=None, *args): ... +def sharp_ifeq(extr, lvalue, rvalue, valueIfTrue, valueIfFalse=None, *args): ... +def sharp_iferror(extr, test, then: str = "", Else=None, *args): ... def sharp_switch(extr, primary, *params): ... def sharp_invoke(module, function, args): ... @@ -210,16 +210,14 @@ tagRE: Incomplete keyRE: Incomplete catRE: Incomplete -def load_templates(file, output_file: Incomplete | None = None) -> None: ... +def load_templates(file, output_file=None) -> None: ... def pages_from(input) -> Generator[Incomplete]: ... def process_dump(input_file, template_file, out_file, file_size, file_compress, process_count) -> None: ... def extract_process(opts, i, jobs_queue, output_queue) -> None: ... report_period: int -def reduce_process( - opts, output_queue, spool_length, out_file: Incomplete | None = None, file_size: int = 0, file_compress: bool = True -) -> None: ... +def reduce_process(opts, output_queue, spool_length, out_file=None, file_size: int = 0, file_compress: bool = True) -> None: ... minFileSize: Incomplete diff --git a/stubs/dateparser/dateparser/freshness_date_parser.pyi b/stubs/dateparser/dateparser/freshness_date_parser.pyi index 93df25f3bafe..f33996d9e23e 100644 --- a/stubs/dateparser/dateparser/freshness_date_parser.pyi +++ b/stubs/dateparser/dateparser/freshness_date_parser.pyi @@ -11,6 +11,6 @@ class FreshnessDateDataParser: def get_local_tz(self) -> ZoneInfo: ... def parse(self, date_string: str, settings) -> tuple[Incomplete | None, str | None]: ... def get_kwargs(self, date_string: str) -> dict[str, float]: ... - def get_date_data(self, date_string: str, settings: Incomplete | None = None) -> DateData: ... + def get_date_data(self, date_string: str, settings=None) -> DateData: ... freshness_date_parser: FreshnessDateDataParser diff --git a/stubs/dateparser/dateparser/languages/dictionary.pyi b/stubs/dateparser/dateparser/languages/dictionary.pyi index 74211e657a23..57c520d5fa0f 100644 --- a/stubs/dateparser/dateparser/languages/dictionary.pyi +++ b/stubs/dateparser/dateparser/languages/dictionary.pyi @@ -14,7 +14,7 @@ class UnknownTokenError(Exception): ... class Dictionary: info: Any - def __init__(self, locale_info: dict[str, Incomplete], settings: Incomplete | None = None) -> None: ... + def __init__(self, locale_info: dict[str, Incomplete], settings=None) -> None: ... def __contains__(self, key): ... def __getitem__(self, key): ... def __iter__(self) -> Any: ... @@ -25,4 +25,4 @@ class Dictionary: def split(self, string: str, keep_formatting: bool = False) -> list[str]: ... class NormalizedDictionary(Dictionary): - def __init__(self, locale_info: dict[str, Incomplete], settings: Incomplete | None = None) -> None: ... + def __init__(self, locale_info: dict[str, Incomplete], settings=None) -> None: ... diff --git a/stubs/dateparser/dateparser/search/detection.pyi b/stubs/dateparser/dateparser/search/detection.pyi index 499ca50b96e8..5e741cf04db6 100644 --- a/stubs/dateparser/dateparser/search/detection.pyi +++ b/stubs/dateparser/dateparser/search/detection.pyi @@ -1,18 +1,17 @@ -from _typeshed import Incomplete from typing import Any class BaseLanguageDetector: languages: Any def __init__(self, languages) -> None: ... - def iterate_applicable_languages(self, date_string, modify: bool = False, settings: Incomplete | None = None) -> None: ... + def iterate_applicable_languages(self, date_string, modify: bool = False, settings=None) -> None: ... class AutoDetectLanguage(BaseLanguageDetector): language_pool: Any allow_redetection: Any def __init__(self, languages, allow_redetection: bool = False) -> None: ... languages: Any - def iterate_applicable_languages(self, date_string, modify: bool = False, settings: Incomplete | None = None) -> None: ... + def iterate_applicable_languages(self, date_string, modify: bool = False, settings=None) -> None: ... class ExactLanguages(BaseLanguageDetector): def __init__(self, languages) -> None: ... - def iterate_applicable_languages(self, date_string, modify: bool = False, settings: Incomplete | None = None) -> None: ... + def iterate_applicable_languages(self, date_string, modify: bool = False, settings=None) -> None: ... diff --git a/stubs/dateparser/dateparser/search/search.pyi b/stubs/dateparser/dateparser/search/search.pyi index 7c96046a44e2..aeb8b863bc75 100644 --- a/stubs/dateparser/dateparser/search/search.pyi +++ b/stubs/dateparser/dateparser/search/search.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from ..date import _DetectLanguagesFunction @@ -29,16 +28,8 @@ class DateSearchWithDetection: def __init__(self) -> None: ... language_detector: Any def detect_language( - self, - text, - languages, - settings: Incomplete | None = None, - detect_languages_function: _DetectLanguagesFunction | None = None, + self, text, languages, settings=None, detect_languages_function: _DetectLanguagesFunction | None = None ): ... def search_dates( - self, - text, - languages: Incomplete | None = None, - settings: Incomplete | None = None, - detect_languages_function: _DetectLanguagesFunction | None = None, + self, text, languages=None, settings=None, detect_languages_function: _DetectLanguagesFunction | None = None ): ... diff --git a/stubs/dateparser/dateparser/utils/__init__.pyi b/stubs/dateparser/dateparser/utils/__init__.pyi index 573e5f1d1957..35555d510786 100644 --- a/stubs/dateparser/dateparser/utils/__init__.pyi +++ b/stubs/dateparser/dateparser/utils/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections import OrderedDict from collections.abc import Mapping from logging import Logger @@ -18,7 +17,7 @@ def apply_timezone_from_settings(date_obj, settings): ... def get_last_day_of_month(year, month): ... def get_previous_leap_year(year): ... def get_next_leap_year(year): ... -def set_correct_day_from_settings(date_obj, settings, current_day: Incomplete | None = None): ... +def set_correct_day_from_settings(date_obj, settings, current_day=None): ... def set_correct_month_from_settings(date_obj, settings, current_month=None): ... def registry(cls): ... def get_logger() -> Logger: ... diff --git a/stubs/defusedxml/defusedxml/ElementTree.pyi b/stubs/defusedxml/defusedxml/ElementTree.pyi index a041469d7c94..6328863d59b0 100644 --- a/stubs/defusedxml/defusedxml/ElementTree.pyi +++ b/stubs/defusedxml/defusedxml/ElementTree.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Iterator, Sequence from typing import Any from xml.etree.ElementTree import Element, ElementTree, ParseError as ParseError, XMLParser as _XMLParser, tostring as tostring @@ -10,7 +9,7 @@ class DefusedXMLParser(_XMLParser): def __init__( self, html=..., - target: Incomplete | None = None, + target=None, encoding: str | None = None, forbid_dtd: bool = False, forbid_entities: bool = True, diff --git a/stubs/defusedxml/defusedxml/minidom.pyi b/stubs/defusedxml/defusedxml/minidom.pyi index 974d1a93aa7d..312cbe8c518e 100644 --- a/stubs/defusedxml/defusedxml/minidom.pyi +++ b/stubs/defusedxml/defusedxml/minidom.pyi @@ -1,20 +1,15 @@ -from _typeshed import Incomplete from xml.dom.minidom import Document __origin__: str def parse( file, - parser: Incomplete | None = None, + parser=None, bufsize: int | None = None, forbid_dtd: bool = False, forbid_entities: bool = True, forbid_external: bool = True, ) -> Document: ... def parseString( - string: str, - parser: Incomplete | None = None, - forbid_dtd: bool = False, - forbid_entities: bool = True, - forbid_external: bool = True, + string: str, parser=None, forbid_dtd: bool = False, forbid_entities: bool = True, forbid_external: bool = True ) -> Document: ... diff --git a/stubs/docker/docker/api/config.pyi b/stubs/docker/docker/api/config.pyi index 688fd463ffdd..209a0762c53c 100644 --- a/stubs/docker/docker/api/config.pyi +++ b/stubs/docker/docker/api/config.pyi @@ -1,7 +1,5 @@ -from _typeshed import Incomplete - class ConfigApiMixin: - def create_config(self, name, data, labels: Incomplete | None = None, templating: Incomplete | None = None): ... + def create_config(self, name, data, labels=None, templating=None): ... def inspect_config(self, id): ... def remove_config(self, id): ... - def configs(self, filters: Incomplete | None = None): ... + def configs(self, filters=None): ... diff --git a/stubs/docker/docker/api/container.pyi b/stubs/docker/docker/api/container.pyi index d2a58261853f..a44bd63fb4ee 100644 --- a/stubs/docker/docker/api/container.pyi +++ b/stubs/docker/docker/api/container.pyi @@ -28,17 +28,17 @@ class ContainerApiMixin: logs: bool = False, demux: bool = False, ): ... - def attach_socket(self, container: _Container, params: Incomplete | None = None, ws: bool = False): ... + def attach_socket(self, container: _Container, params=None, ws: bool = False): ... def commit( self, container: _Container, repository: str | None = None, tag: str | None = None, - message: Incomplete | None = None, - author: Incomplete | None = None, + message=None, + author=None, pause: bool = True, - changes: Incomplete | None = None, - conf: Incomplete | None = None, + changes=None, + conf=None, ): ... def containers( self, @@ -50,7 +50,7 @@ class ContainerApiMixin: before: str | None = None, limit: int = -1, size: bool = False, - filters: Incomplete | None = None, + filters=None, ): ... def create_container( self, @@ -71,19 +71,19 @@ class ContainerApiMixin: entrypoint: str | list[str] | None = None, working_dir: str | None = None, domainname: str | None = None, - host_config: Incomplete | None = None, + host_config=None, mac_address: str | None = None, labels: dict[str, str] | list[str] | None = None, stop_signal: str | None = None, - networking_config: Incomplete | None = None, - healthcheck: Incomplete | None = None, + networking_config=None, + healthcheck=None, stop_timeout: int | None = None, runtime: str | None = None, use_config_proxy: bool = True, platform: str | None = None, ): ... def create_container_config(self, *args, **kwargs) -> ContainerConfig: ... - def create_container_from_config(self, config, name: Incomplete | None = None, platform: Incomplete | None = None): ... + def create_container_from_config(self, config, name=None, platform=None): ... def create_host_config(self, *args, **kwargs) -> HostConfig: ... def create_networking_config(self, *args, **kwargs) -> NetworkingConfig: ... def create_endpoint_config(self, *args, **kwargs) -> EndpointConfig: ... @@ -137,7 +137,7 @@ class ContainerApiMixin: def pause(self, container: _Container) -> None: ... def port(self, container: _Container, private_port: int): ... def put_archive(self, container: _Container, path: str, data) -> bool: ... - def prune_containers(self, filters: Incomplete | None = None): ... + def prune_containers(self, filters=None): ... def remove_container(self, container: _Container, v: bool = False, link: bool = False, force: bool = False) -> None: ... def rename(self, container: _Container, name: str) -> None: ... def resize(self, container: _Container, height: int, width: int) -> None: ... @@ -160,7 +160,7 @@ class ContainerApiMixin: mem_reservation: float | str | None = None, memswap_limit: int | str | None = None, kernel_memory: int | str | None = None, - restart_policy: Incomplete | None = None, + restart_policy=None, ): ... def wait( self, diff --git a/stubs/docker/docker/api/exec_api.pyi b/stubs/docker/docker/api/exec_api.pyi index 0f578d2d5977..60a3e4682c35 100644 --- a/stubs/docker/docker/api/exec_api.pyi +++ b/stubs/docker/docker/api/exec_api.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - class ExecApiMixin: def exec_create( self, @@ -11,12 +9,12 @@ class ExecApiMixin: tty: bool = False, privileged: bool = False, user: str = "", - environment: Incomplete | None = None, - workdir: Incomplete | None = None, - detach_keys: Incomplete | None = None, + environment=None, + workdir=None, + detach_keys=None, ): ... def exec_inspect(self, exec_id): ... - def exec_resize(self, exec_id, height: Incomplete | None = None, width: Incomplete | None = None) -> None: ... + def exec_resize(self, exec_id, height=None, width=None) -> None: ... def exec_start( self, exec_id, detach: bool = False, tty: bool = False, stream: bool = False, socket: bool = False, demux: bool = False ): ... diff --git a/stubs/docker/docker/api/image.pyi b/stubs/docker/docker/api/image.pyi index f03dc7cab47a..92d765fa41a8 100644 --- a/stubs/docker/docker/api/image.pyi +++ b/stubs/docker/docker/api/image.pyi @@ -6,35 +6,25 @@ log: Incomplete class ImageApiMixin: def get_image(self, image: str, chunk_size: int | None = 2097152): ... def history(self, image): ... - def images(self, name: str | None = None, quiet: bool = False, all: bool = False, filters: Incomplete | None = None): ... + def images(self, name: str | None = None, quiet: bool = False, all: bool = False, filters=None): ... def import_image( self, - src: Incomplete | None = None, + src=None, repository: str | None = None, tag: str | None = None, image: str | None = None, - changes: Incomplete | None = None, + changes=None, stream_src: bool = False, ): ... - def import_image_from_data( - self, data, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None - ): ... - def import_image_from_file( - self, filename: str, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None - ): ... - def import_image_from_stream( - self, stream, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None - ): ... - def import_image_from_url( - self, url, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None - ): ... - def import_image_from_image( - self, image, repository: str | None = None, tag: str | None = None, changes: Incomplete | None = None - ): ... + def import_image_from_data(self, data, repository: str | None = None, tag: str | None = None, changes=None): ... + def import_image_from_file(self, filename: str, repository: str | None = None, tag: str | None = None, changes=None): ... + def import_image_from_stream(self, stream, repository: str | None = None, tag: str | None = None, changes=None): ... + def import_image_from_url(self, url, repository: str | None = None, tag: str | None = None, changes=None): ... + def import_image_from_image(self, image, repository: str | None = None, tag: str | None = None, changes=None): ... def inspect_image(self, image): ... - def inspect_distribution(self, image, auth_config: Incomplete | None = None): ... - def load_image(self, data, quiet: Incomplete | None = None): ... - def prune_images(self, filters: Incomplete | None = None): ... + def inspect_distribution(self, image, auth_config=None): ... + def load_image(self, data, quiet=None): ... + def prune_images(self, filters=None): ... def pull( self, repository: str, @@ -45,14 +35,7 @@ class ImageApiMixin: platform: str | None = None, all_tags: bool = False, ): ... - def push( - self, - repository: str, - tag: str | None = None, - stream: bool = False, - auth_config: Incomplete | None = None, - decode: bool = False, - ): ... + def push(self, repository: str, tag: str | None = None, stream: bool = False, auth_config=None, decode: bool = False): ... def remove_image(self, image: str, force: bool = False, noprune: bool = False): ... def search(self, term: str, limit: int | None = None): ... def tag(self, image, repository, tag: str | None = None, force: bool = False): ... diff --git a/stubs/docker/docker/api/network.pyi b/stubs/docker/docker/api/network.pyi index 7f20d8707256..1441ff496c6d 100644 --- a/stubs/docker/docker/api/network.pyi +++ b/stubs/docker/docker/api/network.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Iterable from typing import Any, Literal, TypedDict, type_check_only from typing_extensions import TypeAlias @@ -17,7 +16,7 @@ _Network: TypeAlias = _HasId | _HasID | str _Container: TypeAlias = _HasId | _HasID | str class NetworkApiMixin: - def networks(self, names: Incomplete | None = None, ids: Incomplete | None = None, filters: Incomplete | None = None): ... + def networks(self, names=None, ids=None, filters=None): ... def create_network( self, name: str, @@ -32,7 +31,7 @@ class NetworkApiMixin: scope: Literal["local", "global", "swarm"] | None = None, ingress: bool | None = None, ) -> dict[str, str]: ... - def prune_networks(self, filters: Incomplete | None = None): ... + def prune_networks(self, filters=None): ... def remove_network(self, net_id: _Network) -> None: ... def inspect_network( self, net_id: _Network, verbose: bool | None = None, scope: Literal["local", "global", "swarm"] | None = None @@ -41,12 +40,12 @@ class NetworkApiMixin: self, container: _Container, net_id: str, - ipv4_address: Incomplete | None = None, - ipv6_address: Incomplete | None = None, - aliases: Incomplete | None = None, + ipv4_address=None, + ipv6_address=None, + aliases=None, links: dict[str, str] | dict[str, None] | dict[str, str | None] | Iterable[tuple[str, str | None]] | None = None, - link_local_ips: Incomplete | None = None, - driver_opt: Incomplete | None = None, - mac_address: Incomplete | None = None, + link_local_ips=None, + driver_opt=None, + mac_address=None, ) -> None: ... def disconnect_container_from_network(self, container: _Container, net_id: str, force: bool = False) -> None: ... diff --git a/stubs/docker/docker/api/plugin.pyi b/stubs/docker/docker/api/plugin.pyi index d75818ae14ad..2b8e21968b88 100644 --- a/stubs/docker/docker/api/plugin.pyi +++ b/stubs/docker/docker/api/plugin.pyi @@ -1,12 +1,10 @@ -from _typeshed import Incomplete - class PluginApiMixin: def configure_plugin(self, name, options): ... def create_plugin(self, name, plugin_data_dir, gzip: bool = False): ... def disable_plugin(self, name, force: bool = False): ... def enable_plugin(self, name, timeout: int = 0): ... def inspect_plugin(self, name): ... - def pull_plugin(self, remote, privileges, name: Incomplete | None = None): ... + def pull_plugin(self, remote, privileges, name=None): ... def plugins(self): ... def plugin_privileges(self, name): ... def push_plugin(self, name): ... diff --git a/stubs/docker/docker/api/service.pyi b/stubs/docker/docker/api/service.pyi index 8484722ae722..cf86afc7ba6f 100644 --- a/stubs/docker/docker/api/service.pyi +++ b/stubs/docker/docker/api/service.pyi @@ -1,22 +1,20 @@ -from _typeshed import Incomplete - class ServiceApiMixin: def create_service( self, task_template, - name: Incomplete | None = None, - labels: Incomplete | None = None, - mode: Incomplete | None = None, - update_config: Incomplete | None = None, - networks: Incomplete | None = None, - endpoint_config: Incomplete | None = None, - endpoint_spec: Incomplete | None = None, - rollback_config: Incomplete | None = None, + name=None, + labels=None, + mode=None, + update_config=None, + networks=None, + endpoint_config=None, + endpoint_spec=None, + rollback_config=None, ): ... - def inspect_service(self, service, insert_defaults: Incomplete | None = None): ... + def inspect_service(self, service, insert_defaults=None): ... def inspect_task(self, task): ... def remove_service(self, service): ... - def services(self, filters: Incomplete | None = None, status: Incomplete | None = None): ... + def services(self, filters=None, status=None): ... def service_logs( self, service, @@ -27,21 +25,21 @@ class ServiceApiMixin: since: int = 0, timestamps: bool = False, tail: str = "all", - is_tty: Incomplete | None = None, + is_tty=None, ): ... - def tasks(self, filters: Incomplete | None = None): ... + def tasks(self, filters=None): ... def update_service( self, service, version, - task_template: Incomplete | None = None, - name: Incomplete | None = None, - labels: Incomplete | None = None, - mode: Incomplete | None = None, - update_config: Incomplete | None = None, - networks: Incomplete | None = None, - endpoint_config: Incomplete | None = None, - endpoint_spec: Incomplete | None = None, + task_template=None, + name=None, + labels=None, + mode=None, + update_config=None, + networks=None, + endpoint_config=None, + endpoint_spec=None, fetch_current_spec: bool = False, - rollback_config: Incomplete | None = None, + rollback_config=None, ): ... diff --git a/stubs/docker/docker/api/swarm.pyi b/stubs/docker/docker/api/swarm.pyi index 55111d09ae15..b95dc627c5cc 100644 --- a/stubs/docker/docker/api/swarm.pyi +++ b/stubs/docker/docker/api/swarm.pyi @@ -7,34 +7,29 @@ class SwarmApiMixin: def get_unlock_key(self): ... def init_swarm( self, - advertise_addr: Incomplete | None = None, + advertise_addr=None, listen_addr: str = "0.0.0.0:2377", force_new_cluster: bool = False, - swarm_spec: Incomplete | None = None, - default_addr_pool: Incomplete | None = None, - subnet_size: Incomplete | None = None, - data_path_addr: Incomplete | None = None, - data_path_port: Incomplete | None = None, + swarm_spec=None, + default_addr_pool=None, + subnet_size=None, + data_path_addr=None, + data_path_port=None, ): ... def inspect_swarm(self): ... def inspect_node(self, node_id): ... def join_swarm( - self, - remote_addrs, - join_token, - listen_addr: str = "0.0.0.0:2377", - advertise_addr: Incomplete | None = None, - data_path_addr: Incomplete | None = None, + self, remote_addrs, join_token, listen_addr: str = "0.0.0.0:2377", advertise_addr=None, data_path_addr=None ): ... def leave_swarm(self, force: bool = False): ... - def nodes(self, filters: Incomplete | None = None): ... + def nodes(self, filters=None): ... def remove_node(self, node_id, force: bool = False): ... def unlock_swarm(self, key): ... - def update_node(self, node_id, version, node_spec: Incomplete | None = None): ... + def update_node(self, node_id, version, node_spec=None): ... def update_swarm( self, version, - swarm_spec: Incomplete | None = None, + swarm_spec=None, rotate_worker_token: bool = False, rotate_manager_token: bool = False, rotate_manager_unlock_key: bool = False, diff --git a/stubs/docker/docker/auth.pyi b/stubs/docker/docker/auth.pyi index c5edb95d7dc5..48d3c5c2cbd6 100644 --- a/stubs/docker/docker/auth.pyi +++ b/stubs/docker/docker/auth.pyi @@ -16,17 +16,14 @@ def split_repo_name(repo_name: str) -> tuple[str, str]: ... def get_credential_store(authconfig: AuthConfig | MutableMapping[str, Incomplete], registry: str | None): ... class AuthConfig(dict[str, Incomplete]): - def __init__(self, dct: MutableMapping[str, Incomplete], credstore_env: Incomplete | None = None) -> None: ... + def __init__(self, dct: MutableMapping[str, Incomplete], credstore_env=None) -> None: ... @classmethod def parse_auth( cls, entries: Mapping[str, dict[Incomplete, Incomplete]], raise_on_error: bool = False ) -> dict[str, Incomplete]: ... @classmethod def load_config( - cls, - config_path: FileDescriptorOrPath | None, - config_dict: dict[str, Incomplete] | None, - credstore_env: Incomplete | None = None, + cls, config_path: FileDescriptorOrPath | None, config_dict: dict[str, Incomplete] | None, credstore_env=None ) -> Self: ... @property def auths(self) -> dict[str, Incomplete]: ... @@ -41,13 +38,11 @@ class AuthConfig(dict[str, Incomplete]): def get_all_credentials(self): ... def add_auth(self, reg: str, data) -> None: ... -def resolve_authconfig(authconfig, registry: str | None = None, credstore_env: Incomplete | None = None): ... +def resolve_authconfig(authconfig, registry: str | None = None, credstore_env=None): ... def convert_to_hostname(url: str) -> str: ... def decode_auth(auth: str | ReadableBuffer) -> tuple[str, str]: ... def encode_header(auth) -> bytes: ... def parse_auth(entries: Mapping[str, dict[Incomplete, Incomplete]], raise_on_error: bool = False): ... def load_config( - config_path: FileDescriptorOrPath | None = None, - config_dict: dict[str, Incomplete] | None = None, - credstore_env: Incomplete | None = None, + config_path: FileDescriptorOrPath | None = None, config_dict: dict[str, Incomplete] | None = None, credstore_env=None ) -> AuthConfig: ... diff --git a/stubs/docker/docker/credentials/store.pyi b/stubs/docker/docker/credentials/store.pyi index c98be5bd8c21..c4e708853d4d 100644 --- a/stubs/docker/docker/credentials/store.pyi +++ b/stubs/docker/docker/credentials/store.pyi @@ -4,7 +4,7 @@ class Store: program: Incomplete exe: Incomplete environment: Incomplete - def __init__(self, program, environment: Incomplete | None = None) -> None: ... + def __init__(self, program, environment=None) -> None: ... def get(self, server): ... def store(self, server, username, secret): ... def erase(self, server) -> None: ... diff --git a/stubs/docker/docker/models/containers.pyi b/stubs/docker/docker/models/containers.pyi index 3224f5844cfd..6f5fe645befe 100644 --- a/stubs/docker/docker/models/containers.pyi +++ b/stubs/docker/docker/models/containers.pyi @@ -46,15 +46,15 @@ class Container(Model): detach: bool = False, stream: bool = False, socket: bool = False, - environment: Incomplete | None = None, - workdir: Incomplete | None = None, + environment=None, + workdir=None, demux: bool = False, ) -> ExecResult: ... def export(self, chunk_size: int | None = 2097152) -> str: ... def get_archive( self, path: str, chunk_size: int | None = 2097152, encode_stream: bool = False ) -> tuple[Incomplete, Incomplete]: ... - def kill(self, signal: Incomplete | None = None): ... + def kill(self, signal=None): ... @overload def logs( self, @@ -141,9 +141,9 @@ class ContainerCollection(Collection[Container]): detach: Literal[False] = False, device_cgroup_rules: list[Incomplete] | None = None, device_read_bps: list[Incomplete] | None = None, - device_read_iops: Incomplete | None = None, - device_write_bps: Incomplete | None = None, - device_write_iops: Incomplete | None = None, + device_read_iops=None, + device_write_bps=None, + device_write_iops=None, devices: list[str] | None = None, device_requests: list[DeviceRequest] | None = None, dns: list[Incomplete] | None = None, @@ -236,9 +236,9 @@ class ContainerCollection(Collection[Container]): detach: Literal[True], device_cgroup_rules: list[Incomplete] | None = None, device_read_bps: list[Incomplete] | None = None, - device_read_iops: Incomplete | None = None, - device_write_bps: Incomplete | None = None, - device_write_iops: Incomplete | None = None, + device_read_iops=None, + device_write_bps=None, + device_write_iops=None, devices: list[str] | None = None, device_requests: list[DeviceRequest] | None = None, dns: list[Incomplete] | None = None, @@ -327,9 +327,9 @@ class ContainerCollection(Collection[Container]): detach: Literal[True], device_cgroup_rules: list[Incomplete] | None = None, device_read_bps: list[Incomplete] | None = None, - device_read_iops: Incomplete | None = None, - device_write_bps: Incomplete | None = None, - device_write_iops: Incomplete | None = None, + device_read_iops=None, + device_write_bps=None, + device_write_iops=None, devices: list[str] | None = None, device_requests: list[DeviceRequest] | None = None, dns: list[Incomplete] | None = None, @@ -399,13 +399,13 @@ class ContainerCollection(Collection[Container]): self, all: bool = False, before: str | None = None, - filters: Incomplete | None = None, + filters=None, limit: int = -1, since: str | None = None, sparse: bool = False, ignore_removed: bool = False, ): ... - def prune(self, filters: Incomplete | None = None): ... + def prune(self, filters=None): ... RUN_CREATE_KWARGS: list[str] RUN_HOST_CONFIG_KWARGS: list[str] diff --git a/stubs/docker/docker/models/plugins.pyi b/stubs/docker/docker/models/plugins.pyi index aeb85eef7f00..92b7da67e199 100644 --- a/stubs/docker/docker/models/plugins.pyi +++ b/stubs/docker/docker/models/plugins.pyi @@ -15,11 +15,11 @@ class Plugin(Model): def enable(self, timeout: int = 0) -> None: ... def push(self): ... def remove(self, force: bool = False): ... - def upgrade(self, remote: Incomplete | None = None) -> Generator[Incomplete, Incomplete, None]: ... + def upgrade(self, remote=None) -> Generator[Incomplete, Incomplete, None]: ... class PluginCollection(Collection[Plugin]): model: type[Plugin] def create(self, name, plugin_data_dir, gzip: bool = False): ... # type:ignore[override] def get(self, name): ... - def install(self, remote_name, local_name: Incomplete | None = None): ... + def install(self, remote_name, local_name=None): ... def list(self): ... diff --git a/stubs/docker/docker/models/services.pyi b/stubs/docker/docker/models/services.pyi index fe22b9bba0ae..c20b9e4cc13d 100644 --- a/stubs/docker/docker/models/services.pyi +++ b/stubs/docker/docker/models/services.pyi @@ -9,7 +9,7 @@ class Service(Model): @property def version(self): ... def remove(self): ... - def tasks(self, filters: Incomplete | None = None): ... + def tasks(self, filters=None): ... def update(self, **kwargs): ... def logs(self, **kwargs): ... def scale(self, replicas): ... @@ -17,8 +17,8 @@ class Service(Model): class ServiceCollection(Collection[Service]): model: type[Service] - def create(self, image, command: Incomplete | None = None, **kwargs): ... # type:ignore[override] - def get(self, service_id, insert_defaults: Incomplete | None = None): ... + def create(self, image, command=None, **kwargs): ... # type:ignore[override] + def get(self, service_id, insert_defaults=None): ... def list(self, **kwargs): ... CONTAINER_SPEC_KWARGS: Incomplete diff --git a/stubs/docker/docker/transport/npipeconn.pyi b/stubs/docker/docker/transport/npipeconn.pyi index ab6300e403e1..1b4bd8758dda 100644 --- a/stubs/docker/docker/transport/npipeconn.pyi +++ b/stubs/docker/docker/transport/npipeconn.pyi @@ -25,5 +25,5 @@ class NpipeHTTPAdapter(BaseHTTPAdapter): max_pool_size: Incomplete pools: Incomplete def __init__(self, base_url, timeout: int = 60, pool_connections=..., max_pool_size=...) -> None: ... - def get_connection(self, url, proxies: Incomplete | None = None): ... + def get_connection(self, url, proxies=None): ... def request_url(self, request, proxies): ... diff --git a/stubs/docker/docker/transport/npipesocket.pyi b/stubs/docker/docker/transport/npipesocket.pyi index 8227daae24bb..01fc54e37368 100644 --- a/stubs/docker/docker/transport/npipesocket.pyi +++ b/stubs/docker/docker/transport/npipesocket.pyi @@ -9,7 +9,7 @@ MAXIMUM_RETRY_COUNT: int def check_closed(f): ... class NpipeSocket: - def __init__(self, handle: Incomplete | None = None) -> None: ... + def __init__(self, handle=None) -> None: ... def accept(self) -> None: ... def bind(self, address) -> None: ... def close(self) -> None: ... @@ -20,10 +20,10 @@ class NpipeSocket: def dup(self): ... def getpeername(self): ... def getsockname(self): ... - def getsockopt(self, level, optname, buflen: Incomplete | None = None) -> None: ... + def getsockopt(self, level, optname, buflen=None) -> None: ... def ioctl(self, control, option) -> None: ... def listen(self, backlog) -> None: ... - def makefile(self, mode: Incomplete | None = None, bufsize: Incomplete | None = None): ... + def makefile(self, mode=None, bufsize=None): ... def recv(self, bufsize, flags: int = 0): ... def recvfrom(self, bufsize, flags: int = 0): ... def recvfrom_into(self, buf, nbytes: int = 0, flags: int = 0): ... diff --git a/stubs/docker/docker/transport/sshconn.pyi b/stubs/docker/docker/transport/sshconn.pyi index 42d703e778a5..467bc42f45f9 100644 --- a/stubs/docker/docker/transport/sshconn.pyi +++ b/stubs/docker/docker/transport/sshconn.pyi @@ -24,7 +24,7 @@ class SSHConnection(urllib3.connection.HTTPConnection): ssh_transport: Incomplete timeout: Incomplete ssh_host: Incomplete - def __init__(self, ssh_transport: Incomplete | None = None, timeout: int = 60, host: Incomplete | None = None) -> None: ... + def __init__(self, ssh_transport=None, timeout: int = 60, host=None) -> None: ... sock: Incomplete def connect(self) -> None: ... @@ -33,9 +33,7 @@ class SSHConnectionPool(urllib3.connectionpool.HTTPConnectionPool): ssh_transport: Incomplete timeout: Incomplete ssh_host: Incomplete - def __init__( - self, ssh_client: Incomplete | None = None, timeout: int = 60, maxsize: int = 10, host: Incomplete | None = None - ) -> None: ... + def __init__(self, ssh_client=None, timeout: int = 60, maxsize: int = 10, host=None) -> None: ... class SSHHTTPAdapter(BaseHTTPAdapter): __attrs__: Incomplete @@ -45,5 +43,5 @@ class SSHHTTPAdapter(BaseHTTPAdapter): max_pool_size: Incomplete pools: Incomplete def __init__(self, base_url, timeout: int = 60, pool_connections=..., max_pool_size=..., shell_out: bool = False) -> None: ... - def get_connection(self, url, proxies: Incomplete | None = None): ... + def get_connection(self, url, proxies=None): ... def close(self) -> None: ... diff --git a/stubs/docker/docker/transport/unixconn.pyi b/stubs/docker/docker/transport/unixconn.pyi index 47042570087a..7ca8d338df57 100644 --- a/stubs/docker/docker/transport/unixconn.pyi +++ b/stubs/docker/docker/transport/unixconn.pyi @@ -27,5 +27,5 @@ class UnixHTTPAdapter(BaseHTTPAdapter): max_pool_size: Incomplete pools: Incomplete def __init__(self, socket_url, timeout: int = 60, pool_connections=25, max_pool_size=10) -> None: ... - def get_connection(self, url, proxies: Incomplete | None = None): ... + def get_connection(self, url, proxies=None): ... def request_url(self, request, proxies): ... diff --git a/stubs/docker/docker/types/networks.pyi b/stubs/docker/docker/types/networks.pyi index fb64d7d9fe61..b3caf0209499 100644 --- a/stubs/docker/docker/types/networks.pyi +++ b/stubs/docker/docker/types/networks.pyi @@ -10,7 +10,7 @@ class EndpointConfig(dict[str, Incomplete]): ipv4_address: str | None = None, ipv6_address: str | None = None, link_local_ips: list[str] | None = None, - driver_opt: Incomplete | None = None, + driver_opt=None, mac_address: str | None = None, ) -> None: ... diff --git a/stubs/docker/docker/utils/build.pyi b/stubs/docker/docker/utils/build.pyi index 57100aec43b6..ec168530da14 100644 --- a/stubs/docker/docker/utils/build.pyi +++ b/stubs/docker/docker/utils/build.pyi @@ -1,5 +1,5 @@ import io -from _typeshed import Incomplete, StrOrBytesPath, StrPath +from _typeshed import StrOrBytesPath, StrPath from collections.abc import Generator, Iterable, MutableSequence from os import PathLike from tarfile import _Fileobj @@ -16,11 +16,7 @@ def tar( def exclude_paths(root: StrPath, patterns: MutableSequence[str], dockerfile: str | None = None) -> set[str]: ... def build_file_list(root: str) -> list[str]: ... def create_archive( - root: str, - files: Iterable[str] | None = None, - fileobj: _Fileobj | None = None, - gzip: bool = False, - extra_files: Incomplete | None = None, + root: str, files: Iterable[str] | None = None, fileobj: _Fileobj | None = None, gzip: bool = False, extra_files=None ) -> _TemporaryFileWrapper[bytes] | _Fileobj: ... def mkbuildcontext(dockerfile: io.IOBase | StrOrBytesPath) -> _TemporaryFileWrapper[bytes]: ... def split_path(p: str) -> list[str]: ... diff --git a/stubs/docutils/docutils/core.pyi b/stubs/docutils/docutils/core.pyi index 5e22026bed1e..bf9297b95bd7 100644 --- a/stubs/docutils/docutils/core.pyi +++ b/stubs/docutils/docutils/core.pyi @@ -16,56 +16,36 @@ class Publisher: settings: Incomplete def __init__( self, - reader: Incomplete | None = None, - parser: Incomplete | None = None, - writer: Incomplete | None = None, - source: Incomplete | None = None, + reader=None, + parser=None, + writer=None, + source=None, source_class=..., - destination: Incomplete | None = None, + destination=None, destination_class=..., - settings: Incomplete | None = None, + settings=None, ) -> None: ... def set_reader(self, reader_name, parser, parser_name) -> None: ... def set_writer(self, writer_name) -> None: ... def set_components(self, reader_name, parser_name, writer_name) -> None: ... - def setup_option_parser( - self, - usage: Incomplete | None = None, - description: Incomplete | None = None, - settings_spec: Incomplete | None = None, - config_section: Incomplete | None = None, - **defaults, - ): ... - def get_settings( - self, - usage: Incomplete | None = None, - description: Incomplete | None = None, - settings_spec: Incomplete | None = None, - config_section: Incomplete | None = None, - **defaults, - ): ... + def setup_option_parser(self, usage=None, description=None, settings_spec=None, config_section=None, **defaults): ... + def get_settings(self, usage=None, description=None, settings_spec=None, config_section=None, **defaults): ... def process_programmatic_settings(self, settings_spec, settings_overrides, config_section) -> None: ... def process_command_line( - self, - argv: Incomplete | None = None, - usage: Incomplete | None = None, - description: Incomplete | None = None, - settings_spec: Incomplete | None = None, - config_section: Incomplete | None = None, - **defaults, + self, argv=None, usage=None, description=None, settings_spec=None, config_section=None, **defaults ) -> None: ... - def set_io(self, source_path: Incomplete | None = None, destination_path: Incomplete | None = None) -> None: ... - def set_source(self, source: Incomplete | None = None, source_path: Incomplete | None = None) -> None: ... - def set_destination(self, destination: Incomplete | None = None, destination_path: Incomplete | None = None) -> None: ... + def set_io(self, source_path=None, destination_path=None) -> None: ... + def set_source(self, source=None, source_path=None) -> None: ... + def set_destination(self, destination=None, destination_path=None) -> None: ... def apply_transforms(self) -> None: ... def publish( self, - argv: Incomplete | None = None, - usage: Incomplete | None = None, - description: Incomplete | None = None, - settings_spec: Incomplete | None = None, - settings_overrides: Incomplete | None = None, - config_section: Incomplete | None = None, + argv=None, + usage=None, + description=None, + settings_spec=None, + settings_overrides=None, + config_section=None, enable_exit_status: bool = False, ): ... def debugging_dumps(self) -> None: ... @@ -78,112 +58,112 @@ default_usage: str default_description: str def publish_cmdline( - reader: Incomplete | None = None, + reader=None, reader_name: str = "standalone", - parser: Incomplete | None = None, + parser=None, parser_name: str = "restructuredtext", - writer: Incomplete | None = None, + writer=None, writer_name: str = "pseudoxml", - settings: Incomplete | None = None, - settings_spec: Incomplete | None = None, - settings_overrides: Incomplete | None = None, - config_section: Incomplete | None = None, + settings=None, + settings_spec=None, + settings_overrides=None, + config_section=None, enable_exit_status: bool = True, - argv: Incomplete | None = None, + argv=None, usage=..., description=..., ): ... def publish_file( - source: Incomplete | None = None, - source_path: Incomplete | None = None, - destination: Incomplete | None = None, - destination_path: Incomplete | None = None, - reader: Incomplete | None = None, + source=None, + source_path=None, + destination=None, + destination_path=None, + reader=None, reader_name: str = "standalone", - parser: Incomplete | None = None, + parser=None, parser_name: str = "restructuredtext", - writer: Incomplete | None = None, + writer=None, writer_name: str = "pseudoxml", - settings: Incomplete | None = None, - settings_spec: Incomplete | None = None, - settings_overrides: Incomplete | None = None, - config_section: Incomplete | None = None, + settings=None, + settings_spec=None, + settings_overrides=None, + config_section=None, enable_exit_status: bool = False, ): ... def publish_string( source, - source_path: Incomplete | None = None, - destination_path: Incomplete | None = None, - reader: Incomplete | None = None, + source_path=None, + destination_path=None, + reader=None, reader_name: str = "standalone", - parser: Incomplete | None = None, + parser=None, parser_name: str = "restructuredtext", - writer: Incomplete | None = None, + writer=None, writer_name: str = "pseudoxml", - settings: Incomplete | None = None, - settings_spec: Incomplete | None = None, - settings_overrides: Incomplete | None = None, - config_section: Incomplete | None = None, + settings=None, + settings_spec=None, + settings_overrides=None, + config_section=None, enable_exit_status: bool = False, ): ... def publish_parts( source, - source_path: Incomplete | None = None, + source_path=None, source_class=..., - destination_path: Incomplete | None = None, - reader: Incomplete | None = None, + destination_path=None, + reader=None, reader_name: str = "standalone", - parser: Incomplete | None = None, + parser=None, parser_name: str = "restructuredtext", - writer: Incomplete | None = None, + writer=None, writer_name: str = "pseudoxml", - settings: Incomplete | None = None, - settings_spec: Incomplete | None = None, - settings_overrides: Incomplete | None = None, - config_section: Incomplete | None = None, + settings=None, + settings_spec=None, + settings_overrides=None, + config_section=None, enable_exit_status: bool = False, ) -> _WriterParts: ... def publish_doctree( source, - source_path: Incomplete | None = None, + source_path=None, source_class=..., - reader: Incomplete | None = None, + reader=None, reader_name: str = "standalone", - parser: Incomplete | None = None, + parser=None, parser_name: str = "restructuredtext", - settings: Incomplete | None = None, - settings_spec: Incomplete | None = None, - settings_overrides: Incomplete | None = None, - config_section: Incomplete | None = None, + settings=None, + settings_spec=None, + settings_overrides=None, + config_section=None, enable_exit_status: bool = False, ): ... def publish_from_doctree( document, - destination_path: Incomplete | None = None, - writer: Incomplete | None = None, + destination_path=None, + writer=None, writer_name: str = "pseudoxml", - settings: Incomplete | None = None, - settings_spec: Incomplete | None = None, - settings_overrides: Incomplete | None = None, - config_section: Incomplete | None = None, + settings=None, + settings_spec=None, + settings_overrides=None, + config_section=None, enable_exit_status: bool = False, ): ... def publish_cmdline_to_binary( - reader: Incomplete | None = None, + reader=None, reader_name: str = "standalone", - parser: Incomplete | None = None, + parser=None, parser_name: str = "restructuredtext", - writer: Incomplete | None = None, + writer=None, writer_name: str = "pseudoxml", - settings: Incomplete | None = None, - settings_spec: Incomplete | None = None, - settings_overrides: Incomplete | None = None, - config_section: Incomplete | None = None, + settings=None, + settings_spec=None, + settings_overrides=None, + config_section=None, enable_exit_status: bool = True, - argv: Incomplete | None = None, + argv=None, usage=..., description=..., - destination: Incomplete | None = None, + destination=None, destination_class=..., ): ... def publish_programmatically( diff --git a/stubs/docutils/docutils/frontend.pyi b/stubs/docutils/docutils/frontend.pyi index fadb85ee5673..3b24a75a1442 100644 --- a/stubs/docutils/docutils/frontend.pyi +++ b/stubs/docutils/docutils/frontend.pyi @@ -11,87 +11,27 @@ __docformat__: str def store_multiple(option, opt, value, parser, *args, **kwargs) -> None: ... def read_config_file(option, opt, value, parser) -> None: ... -def validate_encoding( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, -): ... -def validate_encoding_error_handler( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, -): ... -def validate_encoding_and_error_handler( - setting, value, option_parser, config_parser: Incomplete | None = None, config_section: Incomplete | None = None -): ... -def validate_boolean( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, -) -> bool: ... -def validate_nonnegative_int( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, -) -> int: ... -def validate_threshold( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, -) -> int: ... +def validate_encoding(setting, value=None, option_parser=None, config_parser=None, config_section=None): ... +def validate_encoding_error_handler(setting, value=None, option_parser=None, config_parser=None, config_section=None): ... +def validate_encoding_and_error_handler(setting, value, option_parser, config_parser=None, config_section=None): ... +def validate_boolean(setting, value=None, option_parser=None, config_parser=None, config_section=None) -> bool: ... +def validate_nonnegative_int(setting, value=None, option_parser=None, config_parser=None, config_section=None) -> int: ... +def validate_threshold(setting, value=None, option_parser=None, config_parser=None, config_section=None) -> int: ... def validate_colon_separated_string_list( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, + setting, value=None, option_parser=None, config_parser=None, config_section=None ) -> list[str]: ... def validate_comma_separated_list( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, + setting, value=None, option_parser=None, config_parser=None, config_section=None ) -> list[str]: ... -def validate_url_trailing_slash( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, -) -> str: ... +def validate_url_trailing_slash(setting, value=None, option_parser=None, config_parser=None, config_section=None) -> str: ... def validate_dependency_file( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, + setting, value=None, option_parser=None, config_parser=None, config_section=None ) -> DependencyList: ... -def validate_strip_class( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, -): ... +def validate_strip_class(setting, value=None, option_parser=None, config_parser=None, config_section=None): ... def validate_smartquotes_locales( - setting, - value: Incomplete | None = None, - option_parser: Incomplete | None = None, - config_parser: Incomplete | None = None, - config_section: Incomplete | None = None, + setting, value=None, option_parser=None, config_parser=None, config_section=None ) -> list[tuple[str, str]]: ... -def make_paths_absolute(pathdict, keys, base_path: Incomplete | None = None) -> None: ... +def make_paths_absolute(pathdict, keys, base_path=None) -> None: ... def make_one_path_absolute(base_path, path) -> str: ... def filter_settings_spec(settings_spec, *exclude, **replace) -> tuple[Any, ...]: ... diff --git a/stubs/docutils/docutils/io.pyi b/stubs/docutils/docutils/io.pyi index 9796329c7819..532c8bec15e6 100644 --- a/stubs/docutils/docutils/io.pyi +++ b/stubs/docutils/docutils/io.pyi @@ -44,11 +44,7 @@ class Output(TransformSpec): component_type: ClassVar[str] default_destination_path: ClassVar[str | None] def __init__( - self, - destination: Incomplete | None = None, - destination_path: Incomplete | None = None, - encoding: str | None = None, - error_handler: str = "strict", + self, destination=None, destination_path=None, encoding: str | None = None, error_handler: str = "strict" ) -> None: ... def write(self, data: str) -> Any: ... # returns bytes or str def encode(self, data: str) -> Any: ... # returns bytes or str @@ -68,8 +64,8 @@ class ErrorOutput: class FileInput(Input[IO[str]]): def __init__( self, - source: Incomplete | None = None, - source_path: Incomplete | None = None, + source=None, + source_path=None, encoding: str | None = None, error_handler: str = "strict", autoclose: bool = True, diff --git a/stubs/docutils/docutils/parsers/rst/states.pyi b/stubs/docutils/docutils/parsers/rst/states.pyi index 33d80a454093..ae8059b595db 100644 --- a/stubs/docutils/docutils/parsers/rst/states.pyi +++ b/stubs/docutils/docutils/parsers/rst/states.pyi @@ -33,7 +33,7 @@ class RSTState(StateWS[list[str]]): node, match_titles: bool = False, state_machine_class: type[StateMachine[list[str]]] | None = None, - state_machine_kwargs: Incomplete | None = None, + state_machine_kwargs=None, ): ... def nested_list_parse( self, @@ -42,11 +42,11 @@ class RSTState(StateWS[list[str]]): node, initial_state, blank_finish, - blank_finish_state: Incomplete | None = None, + blank_finish_state=None, extra_settings={}, match_titles: bool = False, - state_machine_class: Incomplete | None = None, - state_machine_kwargs: Incomplete | None = None, + state_machine_class=None, + state_machine_kwargs=None, ): ... def section(self, title: str, source, style, lineno: int, messages) -> None: ... def check_subsection(self, source, style, lineno: int): ... diff --git a/stubs/fpdf2/fpdf/annotations.pyi b/stubs/fpdf2/fpdf/annotations.pyi index 4d1c3e42d8d8..351f46fa9edd 100644 --- a/stubs/fpdf2/fpdf/annotations.pyi +++ b/stubs/fpdf2/fpdf/annotations.pyi @@ -48,7 +48,7 @@ class AnnotationMixin: ink_list: tuple[int, ...] = (), file_spec: str | None = None, field_type: str | None = None, - value: Incomplete | None = None, + value=None, default_appearance: str | None = None, ) -> None: ... diff --git a/stubs/fpdf2/fpdf/drawing.pyi b/stubs/fpdf2/fpdf/drawing.pyi index 648523c5c152..1d0fbefb7245 100644 --- a/stubs/fpdf2/fpdf/drawing.pyi +++ b/stubs/fpdf2/fpdf/drawing.pyi @@ -72,8 +72,8 @@ class DeviceCMYK(_DeviceCMYKBase): def colors(self) -> tuple[Number, Number, Number, Number]: ... def serialize(self) -> str: ... -def rgb8(r, g, b, a: Incomplete | None = None) -> DeviceRGB: ... -def gray8(g, a: Incomplete | None = None) -> DeviceGray: ... +def rgb8(r, g, b, a=None) -> DeviceRGB: ... +def gray8(g, a=None) -> DeviceGray: ... @overload def convert_to_device_color(r: DeviceCMYK) -> DeviceCMYK: ... @overload @@ -86,7 +86,7 @@ def convert_to_device_color(r: str) -> DeviceRGB: ... def convert_to_device_color(r: int, g: Literal[-1] = -1, b: Literal[-1] = -1) -> DeviceGray: ... @overload def convert_to_device_color(r: Sequence[int] | int, g: int, b: int) -> DeviceGray | DeviceRGB: ... -def cmyk8(c, m, y, k, a: Incomplete | None = None) -> DeviceCMYK: ... +def cmyk8(c, m, y, k, a=None) -> DeviceCMYK: ... def color_from_hex_string(hexstr) -> DeviceRGB: ... def color_from_rgb_string(rgbstr) -> DeviceRGB: ... @@ -118,18 +118,18 @@ class Transform(NamedTuple): @classmethod def translation(cls, x, y): ... @classmethod - def scaling(cls, x, y: Incomplete | None = None): ... + def scaling(cls, x, y=None): ... @classmethod def rotation(cls, theta): ... @classmethod def rotation_d(cls, theta_d): ... @classmethod - def shearing(cls, x, y: Incomplete | None = None): ... + def shearing(cls, x, y=None): ... def translate(self, x, y): ... - def scale(self, x, y: Incomplete | None = None): ... + def scale(self, x, y=None): ... def rotate(self, theta): ... def rotate_d(self, theta_d): ... - def shear(self, x, y: Incomplete | None = None): ... + def shear(self, x, y=None): ... def about(self, x, y): ... def __mul__(self, other): ... def __rmul__(self, other): ... @@ -379,17 +379,13 @@ class PaintedPath: def arc_to(self, rx, ry, rotation, large_arc, positive_sweep, x, y) -> Self: ... def arc_relative(self, rx, ry, rotation, large_arc, positive_sweep, dx, dy) -> Self: ... def close(self) -> None: ... - def render( - self, gsd_registry, style, last_item, initial_point, debug_stream: Incomplete | None = None, pfx: Incomplete | None = None - ): ... + def render(self, gsd_registry, style, last_item, initial_point, debug_stream=None, pfx=None): ... def render_debug(self, gsd_registry, style, last_item, initial_point, debug_stream, pfx): ... class ClippingPath(PaintedPath): paint_rule: Incomplete def __init__(self, x: int = 0, y: int = 0) -> None: ... - def render( - self, gsd_registry, style, last_item, initial_point, debug_stream: Incomplete | None = None, pfx: Incomplete | None = None - ): ... + def render(self, gsd_registry, style, last_item, initial_point, debug_stream=None, pfx=None): ... def render_debug(self, gsd_registry, style, last_item, initial_point, debug_stream, pfx): ... class GraphicsContext: @@ -409,24 +405,10 @@ class GraphicsContext: def remove_last_item(self) -> None: ... def merge(self, other_context) -> None: ... def build_render_list( - self, - gsd_registry, - style, - last_item, - initial_point, - debug_stream: Incomplete | None = None, - pfx: Incomplete | None = None, - _push_stack: bool = True, + self, gsd_registry, style, last_item, initial_point, debug_stream=None, pfx=None, _push_stack: bool = True ): ... def render( - self, - gsd_registry, - style: DrawingContext, - last_item, - initial_point, - debug_stream: Incomplete | None = None, - pfx: Incomplete | None = None, - _push_stack: bool = True, + self, gsd_registry, style: DrawingContext, last_item, initial_point, debug_stream=None, pfx=None, _push_stack: bool = True ): ... def render_debug( self, gsd_registry, style: DrawingContext, last_item, initial_point, debug_stream, pfx, _push_stack: bool = True diff --git a/stubs/fpdf2/fpdf/fonts.pyi b/stubs/fpdf2/fpdf/fonts.pyi index adb41f2412ea..ee0502b493dc 100644 --- a/stubs/fpdf2/fpdf/fonts.pyi +++ b/stubs/fpdf2/fpdf/fonts.pyi @@ -29,7 +29,7 @@ class FontFace: def __init__( self, family: str | None = None, - emphasis: Incomplete | None = None, + emphasis=None, size_pt: int | None = None, color: int | tuple[Number, Number, Number] | DeviceGray | DeviceRGB | None = None, fill_color: int | tuple[Number, Number, Number] | DeviceGray | DeviceRGB | None = None, @@ -149,13 +149,7 @@ class SubsetMap: def items(self) -> Generator[Incomplete, None, None]: ... def pick(self, unicode: int): ... def pick_glyph(self, glyph): ... - def get_glyph( - self, - glyph: Incomplete | None = None, - unicode: Incomplete | None = None, - glyph_name: Incomplete | None = None, - glyph_width: Incomplete | None = None, - ) -> Glyph: ... + def get_glyph(self, glyph=None, unicode=None, glyph_name=None, glyph_width=None) -> Glyph: ... def get_all_glyph_names(self): ... CORE_FONTS: dict[str, str] diff --git a/stubs/fpdf2/fpdf/fpdf.pyi b/stubs/fpdf2/fpdf/fpdf.pyi index 2d5bd0f8ebd5..67832cb7fbf2 100644 --- a/stubs/fpdf2/fpdf/fpdf.pyi +++ b/stubs/fpdf2/fpdf/fpdf.pyi @@ -298,11 +298,11 @@ class FPDF(GraphicsStateMixin): def get_string_width(self, s: str, normalized: bool = False, markdown: bool = False) -> float: ... def set_line_width(self, width: float) -> None: ... def set_page_background(self, background) -> None: ... - def drawing_context(self, debug_stream: Incomplete | None = None) -> _GeneratorContextManager[DrawingContext]: ... + def drawing_context(self, debug_stream=None) -> _GeneratorContextManager[DrawingContext]: ... def new_path( - self, x: float = 0, y: float = 0, paint_rule: PathPaintRule = ..., debug_stream: Incomplete | None = None + self, x: float = 0, y: float = 0, paint_rule: PathPaintRule = ..., debug_stream=None ) -> _GeneratorContextManager[PaintedPath]: ... - def draw_path(self, path: PaintedPath, debug_stream: Incomplete | None = None) -> None: ... + def draw_path(self, path: PaintedPath, debug_stream=None) -> None: ... def set_dash_pattern(self, dash: float = 0, gap: float = 0, phase: float = 0) -> None: ... def line(self, x1: float, y1: float, x2: float, y2: float) -> None: ... def polyline( @@ -505,14 +505,14 @@ class FPDF(GraphicsStateMixin): def local_context( self, *, - font_family: Incomplete | None = None, - font_style: Incomplete | None = None, - font_size_pt: Incomplete | None = None, - line_width: Incomplete | None = None, - draw_color: Incomplete | None = None, - fill_color: Incomplete | None = None, - text_color: Incomplete | None = None, - dash_pattern: Incomplete | None = None, + font_family=None, + font_style=None, + font_size_pt=None, + line_width=None, + draw_color=None, + fill_color=None, + text_color=None, + dash_pattern=None, font_size=..., # semi-deprecated, prefer font_size_pt char_vpos=..., char_spacing=..., diff --git a/stubs/fpdf2/fpdf/image_parsing.pyi b/stubs/fpdf2/fpdf/image_parsing.pyi index 000d9f725696..67cbe33b7530 100644 --- a/stubs/fpdf2/fpdf/image_parsing.pyi +++ b/stubs/fpdf2/fpdf/image_parsing.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Iterable from dataclasses import dataclass from io import BytesIO @@ -40,7 +39,7 @@ def get_svg_info(filename: str, img: BytesIO, image_cache: ImageCache) -> tuple[ # Returned dict could be typed as a TypedDict. def get_img_info( - filename, img: BytesIO | Image.Image | None = None, image_filter: _ImageFilter = "AUTO", dims: Incomplete | None = None + filename, img: BytesIO | Image.Image | None = None, image_filter: _ImageFilter = "AUTO", dims=None ) -> dict[str, Any]: ... class temp_attr: diff --git a/stubs/fpdf2/fpdf/output.pyi b/stubs/fpdf2/fpdf/output.pyi index 630472ca0abd..fb963c770e04 100644 --- a/stubs/fpdf2/fpdf/output.pyi +++ b/stubs/fpdf2/fpdf/output.pyi @@ -34,14 +34,7 @@ class PDFFont(PDFObject): c_i_d_system_info: Incomplete | None font_descriptor: Incomplete | None c_i_d_to_g_i_d_map: Incomplete | None - def __init__( - self, - subtype: str, - base_font: str, - encoding: str | None = None, - d_w: Incomplete | None = None, - w: Incomplete | None = None, - ) -> None: ... + def __init__(self, subtype: str, base_font: str, encoding: str | None = None, d_w=None, w=None) -> None: ... class CIDSystemInfo(PDFObject): registry: PDFString @@ -88,13 +81,7 @@ class PDFCatalog(PDFObject): outlines: Incomplete | None output_intents: Incomplete | None struct_tree_root: Incomplete | None - def __init__( - self, - lang: str | None = None, - page_layout: Incomplete | None = None, - page_mode: Incomplete | None = None, - viewer_preferences: Incomplete | None = None, - ) -> None: ... + def __init__(self, lang: str | None = None, page_layout=None, page_mode=None, viewer_preferences=None) -> None: ... class PDFResources(PDFObject): proc_set: Incomplete @@ -134,8 +121,8 @@ class PDFXObject(PDFContentStream): color_space, bits_per_component, img_filter: str | None = None, - decode: Incomplete | None = None, - decode_parms: Incomplete | None = None, + decode=None, + decode_parms=None, ) -> None: ... class PDFICCProfile(PDFContentStream): @@ -214,7 +201,7 @@ class OutputIntentDictionary: dest_output_profile: PDFICCProfile | None = None, info: str | None = None, ) -> None: ... - def serialize(self, _security_handler: StandardSecurityHandler | None = None, _obj_id: Incomplete | None = None): ... + def serialize(self, _security_handler: StandardSecurityHandler | None = None, _obj_id=None): ... class ResourceCatalog: resources: defaultdict[PDFResourceType, dict[Incomplete, Incomplete]] diff --git a/stubs/fpdf2/fpdf/pattern.pyi b/stubs/fpdf2/fpdf/pattern.pyi index c58a3ea4e82c..6d0d043764c6 100644 --- a/stubs/fpdf2/fpdf/pattern.pyi +++ b/stubs/fpdf2/fpdf/pattern.pyi @@ -78,7 +78,7 @@ class LinearGradient(Gradient): to_x: float, to_y: float, colors: list[Incomplete], - background: Incomplete | None = None, + background=None, extend_before: bool = False, extend_after: bool = False, bounds: list[int] | None = None, diff --git a/stubs/fpdf2/fpdf/prefs.pyi b/stubs/fpdf2/fpdf/prefs.pyi index f4d4899686e9..d7b1b55f442f 100644 --- a/stubs/fpdf2/fpdf/prefs.pyi +++ b/stubs/fpdf2/fpdf/prefs.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Literal from .enums import Duplex, PageBoundaries, PageMode, TextDirection @@ -26,7 +25,7 @@ class ViewerPreferences: view_clip: PageBoundaries | None = None, print_area: PageBoundaries | None = None, print_clip: PageBoundaries | None = None, - print_scaling: Incomplete | None = None, + print_scaling=None, ) -> None: ... @property def non_full_screen_page_mode(self) -> PageMode | None: ... diff --git a/stubs/fpdf2/fpdf/sign.pyi b/stubs/fpdf2/fpdf/sign.pyi index a34fbe831655..1176b1a099e1 100644 --- a/stubs/fpdf2/fpdf/sign.pyi +++ b/stubs/fpdf2/fpdf/sign.pyi @@ -10,13 +10,7 @@ class Signature: reason: Incomplete | None byte_range: str contents: str - def __init__( - self, - contact_info: Incomplete | None = None, - location: Incomplete | None = None, - m: Incomplete | None = None, - reason: Incomplete | None = None, - ) -> None: ... + def __init__(self, contact_info=None, location=None, m=None, reason=None) -> None: ... def serialize(self) -> str: ... def sign_content(signer, buffer, key, cert, extra_certs, hashalgo, sign_time): ... diff --git a/stubs/fpdf2/fpdf/svg.pyi b/stubs/fpdf2/fpdf/svg.pyi index c7d1a41f645e..3f98d58aafdf 100644 --- a/stubs/fpdf2/fpdf/svg.pyi +++ b/stubs/fpdf2/fpdf/svg.pyi @@ -110,12 +110,10 @@ class SVGObject: def transform_to_rect_viewport( self, scale, width, height, align_viewbox: bool = True, ignore_svg_top_attrs: bool = False ): ... - def draw_to_page( - self, pdf: FPDF, x: Incomplete | None = None, y: Incomplete | None = None, debug_stream: Incomplete | None = None - ) -> None: ... + def draw_to_page(self, pdf: FPDF, x=None, y=None, debug_stream=None) -> None: ... def handle_defs(self, defs) -> None: ... def build_xref(self, xref): ... - def build_group(self, group, pdf_group: Incomplete | None = None): ... + def build_group(self, group, pdf_group=None): ... def build_path(self, path): ... def build_shape(self, shape): ... def build_clipping_path(self, shape, clip_id): ... diff --git a/stubs/fpdf2/fpdf/syntax.pyi b/stubs/fpdf2/fpdf/syntax.pyi index 62daa150bafd..a6005e9e4c52 100644 --- a/stubs/fpdf2/fpdf/syntax.pyi +++ b/stubs/fpdf2/fpdf/syntax.pyi @@ -20,9 +20,7 @@ def create_dictionary_string( ) -> str: ... def create_list_string(list_): ... def iobj_ref(n): ... -def create_stream( - stream: str | bytes | bytearray, encryption_handler: StandardSecurityHandler | None = None, obj_id: Incomplete | None = None -): ... +def create_stream(stream: str | bytes | bytearray, encryption_handler: StandardSecurityHandler | None = None, obj_id=None): ... class Raw(str): ... @@ -37,7 +35,7 @@ class PDFObject: def id(self, n: int) -> None: ... @property def ref(self) -> str: ... - def serialize(self, obj_dict: Incomplete | None = None, _security_handler: StandardSecurityHandler | None = None) -> str: ... + def serialize(self, obj_dict=None, _security_handler: StandardSecurityHandler | None = None) -> str: ... def content_stream(self) -> bytes: ... class PDFContentStream(PDFObject): @@ -78,9 +76,5 @@ class DestinationXYZ(Destination): def __init__(self, page: int, top: float, left: float = 0, zoom: float | Literal["null"] = "null") -> None: ... def serialize(self) -> str: ... def replace( - self, - page: Incomplete | None = None, - top: float | None = None, - left: float | None = None, - zoom: float | Literal["null"] | None = None, + self, page=None, top: float | None = None, left: float | None = None, zoom: float | Literal["null"] | None = None ) -> DestinationXYZ: ... diff --git a/stubs/fpdf2/fpdf/table.pyi b/stubs/fpdf2/fpdf/table.pyi index 28e0313bfabf..55ec102ed504 100644 --- a/stubs/fpdf2/fpdf/table.pyi +++ b/stubs/fpdf2/fpdf/table.pyi @@ -52,14 +52,10 @@ class Table: outer_border_width: float | None = None, num_heading_rows: int = 1, repeat_headings: TableHeadingsDisplay | int = 1, - min_row_height: Incomplete | None = None, + min_row_height=None, ) -> None: ... def row( - self, - cells: Iterable[str] = (), - style: FontFace | None = None, - v_align: VAlign | str | None = None, - min_height: Incomplete | None = None, + self, cells: Iterable[str] = (), style: FontFace | None = None, v_align: VAlign | str | None = None, min_height=None ) -> Row: ... def render(self) -> None: ... def get_cell_border(self, i: int, j: int, cell: Cell) -> str | Literal[0, 1]: ... @@ -70,11 +66,7 @@ class Row: v_align: VAlign | None min_height: Incomplete | None def __init__( - self, - table: Table, - style: FontFace | None = None, - v_align: VAlign | str | None = None, - min_height: Incomplete | None = None, + self, table: Table, style: FontFace | None = None, v_align: VAlign | str | None = None, min_height=None ) -> None: ... @property def cols_count(self) -> int: ... @@ -126,7 +118,7 @@ class Cell: link: str | int | None border: CellBordersLayout | None - def write(self, text, align: Incomplete | None = None): ... + def write(self, text, align=None): ... @dataclass(frozen=True) class RowLayoutInfo: @@ -144,4 +136,4 @@ class RowSpanLayoutInfo: def row_range(self) -> range: ... -def draw_box_borders(pdf: FPDF, x1, y1, x2, y2, border: str | Literal[0, 1], fill_color: Incomplete | None = None) -> None: ... +def draw_box_borders(pdf: FPDF, x1, y1, x2, y2, border: str | Literal[0, 1], fill_color=None) -> None: ... diff --git a/stubs/fpdf2/fpdf/template.pyi b/stubs/fpdf2/fpdf/template.pyi index e795850c5054..4c94913b3356 100644 --- a/stubs/fpdf2/fpdf/template.pyi +++ b/stubs/fpdf2/fpdf/template.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from os import PathLike from typing import Any @@ -11,7 +10,7 @@ class FlexTemplate: splitting_pdf: Any handlers: Any texts: Any - def __init__(self, pdf, elements: Incomplete | None = None) -> None: ... + def __init__(self, pdf, elements=None) -> None: ... elements: Any keys: Any def load_elements(self, elements) -> None: ... @@ -29,8 +28,8 @@ class FlexTemplate: class Template(FlexTemplate): def __init__( self, - infile: Incomplete | None = None, - elements: Incomplete | None = None, + infile=None, + elements=None, format: str = "A4", orientation: str = "portrait", unit: str = "mm", @@ -41,4 +40,4 @@ class Template(FlexTemplate): keywords: str = "", ) -> None: ... def add_page(self) -> None: ... - def render(self, outfile: Incomplete | None = None, dest: Incomplete | None = None) -> None: ... # type: ignore[override] + def render(self, outfile=None, dest=None) -> None: ... # type: ignore[override] diff --git a/stubs/fpdf2/fpdf/text_region.pyi b/stubs/fpdf2/fpdf/text_region.pyi index 76d7b4c69173..481a173b16c0 100644 --- a/stubs/fpdf2/fpdf/text_region.pyi +++ b/stubs/fpdf2/fpdf/text_region.pyi @@ -47,7 +47,7 @@ class Paragraph: self, region, text_align: _TextAlign | None = None, - line_height: Incomplete | None = None, + line_height=None, top_margin: float = 0, bottom_margin: float = 0, indent: float = 0, @@ -59,7 +59,7 @@ class Paragraph: ) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_value, traceback) -> None: ... - def write(self, text: str, link: Incomplete | None = None): ... + def write(self, text: str, link=None): ... def generate_bullet_frags_and_tl( self, bullet_string: str, bullet_r_margin: float ) -> tuple[tuple[Fragment, ...], TextLine] | None: ... @@ -93,9 +93,9 @@ class ImageParagraph: keep_aspect_ratio: bool = False, top_margin: float = 0, bottom_margin: float = 0, - link: Incomplete | None = None, - title: Incomplete | None = None, - alt_text: Incomplete | None = None, + link=None, + title=None, + alt_text=None, ) -> None: ... def build_line(self) -> Self: ... def render(self, col_left: float, col_width: float, max_height: float) -> VectorImageInfo | RasterImageInfo: ... @@ -117,18 +117,18 @@ class ParagraphCollectorMixin: print_sh: bool = False, skip_leading_spaces: bool = False, wrapmode: WrapMode | None = None, - img: Incomplete | None = None, + img=None, img_fill_width: bool = False, **kwargs, ) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_value, traceback) -> None: ... - def write(self, text: str, link: Incomplete | None = None): ... + def write(self, text: str, link=None): ... def ln(self, h: float | None = None) -> None: ... def paragraph( self, text_align: _TextAlign | None = None, - line_height: Incomplete | None = None, + line_height=None, skip_leading_spaces: bool = False, top_margin: int = 0, bottom_margin: int = 0, @@ -149,9 +149,9 @@ class ParagraphCollectorMixin: keep_aspect_ratio: bool = False, top_margin: float = 0, bottom_margin: float = 0, - link: Incomplete | None = None, - title: Incomplete | None = None, - alt_text: Incomplete | None = None, + link=None, + title=None, + alt_text=None, ) -> None: ... class TextRegion(ParagraphCollectorMixin): @@ -163,7 +163,7 @@ class TextRegion(ParagraphCollectorMixin): class TextColumnarMixin: l_margin: Incomplete r_margin: Incomplete - def __init__(self, pdf, *args, l_margin: Incomplete | None = None, r_margin: Incomplete | None = None, **kwargs) -> None: ... + def __init__(self, pdf, *args, l_margin=None, r_margin=None, **kwargs) -> None: ... class TextColumns(TextRegion, TextColumnarMixin): balance: Incomplete diff --git a/stubs/gdb/gdb/disassembler.pyi b/stubs/gdb/gdb/disassembler.pyi index d4fe1ae0d511..a1560c154600 100644 --- a/stubs/gdb/gdb/disassembler.pyi +++ b/stubs/gdb/gdb/disassembler.pyi @@ -48,7 +48,7 @@ STYLE_ADDRESS_OFFSET: Final = 7 STYLE_SYMBOL: Final = 8 STYLE_COMMENT_START: Final = 9 -def builtin_disassemble(INFO: DisassembleInfo, MEMORY_SOURCE: Incomplete | None = None) -> None: ... +def builtin_disassemble(INFO: DisassembleInfo, MEMORY_SOURCE=None) -> None: ... class maint_info_py_disassemblers_cmd(gdb.Command): def __init__(self) -> None: ... diff --git a/stubs/html5lib/html5lib/_ihatexml.pyi b/stubs/html5lib/html5lib/_ihatexml.pyi index ea95b52c86e7..cd710c885815 100644 --- a/stubs/html5lib/html5lib/_ihatexml.pyi +++ b/stubs/html5lib/html5lib/_ihatexml.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any baseChar: str @@ -44,7 +43,7 @@ class InfosetFilter: replaceFormFeedCharacters: bool = True, preventSingleQuotePubid: bool = False, ) -> None: ... - def coerceAttribute(self, name, namespace: Incomplete | None = None): ... + def coerceAttribute(self, name, namespace=None): ... def coerceElement(self, name): ... def coerceComment(self, data): ... def coerceCharacters(self, data): ... diff --git a/stubs/html5lib/html5lib/_inputstream.pyi b/stubs/html5lib/html5lib/_inputstream.pyi index bf0479f9a5be..10759fad6cd5 100644 --- a/stubs/html5lib/html5lib/_inputstream.pyi +++ b/stubs/html5lib/html5lib/_inputstream.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, SupportsRead +from _typeshed import SupportsRead from codecs import CodecInfo from typing import Any, Protocol, overload from typing_extensions import TypeAlias @@ -62,7 +62,7 @@ class HTMLUnicodeInputStream: def openStream(self, source): ... def position(self) -> tuple[int, int]: ... def char(self): ... - def readChunk(self, chunkSize: Incomplete | None = None): ... + def readChunk(self, chunkSize=None): ... def characterErrorsUCS4(self, data) -> None: ... def characterErrorsUCS2(self, data) -> None: ... def charsUntil(self, characters, opposite: bool = False): ... diff --git a/stubs/html5lib/html5lib/_tokenizer.pyi b/stubs/html5lib/html5lib/_tokenizer.pyi index 72b701c37491..e999fbcde4cf 100644 --- a/stubs/html5lib/html5lib/_tokenizer.pyi +++ b/stubs/html5lib/html5lib/_tokenizer.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from ._inputstream import _InputStream @@ -14,11 +13,11 @@ class HTMLTokenizer: state: Any escape: bool currentToken: Any - def __init__(self, stream: _InputStream, parser: Incomplete | None = None, **kwargs) -> None: ... + def __init__(self, stream: _InputStream, parser=None, **kwargs) -> None: ... tokenQueue: Any def __iter__(self): ... def consumeNumberEntity(self, isHex): ... - def consumeEntity(self, allowedChar: Incomplete | None = None, fromAttribute: bool = False) -> None: ... + def consumeEntity(self, allowedChar=None, fromAttribute: bool = False) -> None: ... def processEntityInAttribute(self, allowedChar) -> None: ... def emitCurrentToken(self) -> None: ... def dataState(self): ... diff --git a/stubs/html5lib/html5lib/_trie/_base.pyi b/stubs/html5lib/html5lib/_trie/_base.pyi index 1d88b9a602d8..7016028a2417 100644 --- a/stubs/html5lib/html5lib/_trie/_base.pyi +++ b/stubs/html5lib/html5lib/_trie/_base.pyi @@ -1,10 +1,9 @@ -from _typeshed import Incomplete from abc import ABCMeta from collections.abc import Mapping from typing import Any class Trie(Mapping[Any, Any], metaclass=ABCMeta): - def keys(self, prefix: Incomplete | None = None): ... + def keys(self, prefix=None): ... def has_keys_with_prefix(self, prefix): ... def longest_prefix(self, prefix): ... def longest_prefix_item(self, prefix): ... diff --git a/stubs/html5lib/html5lib/_trie/py.pyi b/stubs/html5lib/html5lib/_trie/py.pyi index 03d9a4687b8a..4d3f7c7bb069 100644 --- a/stubs/html5lib/html5lib/_trie/py.pyi +++ b/stubs/html5lib/html5lib/_trie/py.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from ._base import Trie as ABCTrie class Trie(ABCTrie): @@ -8,5 +6,5 @@ class Trie(ABCTrie): def __len__(self) -> int: ... def __iter__(self): ... def __getitem__(self, key): ... - def keys(self, prefix: Incomplete | None = None): ... + def keys(self, prefix=None): ... def has_keys_with_prefix(self, prefix): ... diff --git a/stubs/html5lib/html5lib/_utils.pyi b/stubs/html5lib/html5lib/_utils.pyi index 7401d338c649..7cc3edba3c64 100644 --- a/stubs/html5lib/html5lib/_utils.pyi +++ b/stubs/html5lib/html5lib/_utils.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Mapping from typing import Any @@ -8,7 +7,7 @@ class MethodDispatcher(dict[Any, Any]): default: Any def __init__(self, items=()) -> None: ... def __getitem__(self, key): ... - def __get__(self, instance, owner: Incomplete | None = None): ... + def __get__(self, instance, owner=None): ... class BoundMethodDispatcher(Mapping[Any, Any]): instance: Any diff --git a/stubs/html5lib/html5lib/html5parser.pyi b/stubs/html5lib/html5lib/html5parser.pyi index 3f2fa19db7a1..2e38eaea5688 100644 --- a/stubs/html5lib/html5lib/html5parser.pyi +++ b/stubs/html5lib/html5lib/html5parser.pyi @@ -21,9 +21,7 @@ class HTMLParser: tree: Any errors: list[Incomplete] phases: Any - def __init__( - self, tree: Incomplete | None = None, strict: bool = False, namespaceHTMLElements: bool = True, debug: bool = False - ) -> None: ... + def __init__(self, tree=None, strict: bool = False, namespaceHTMLElements: bool = True, debug: bool = False) -> None: ... firstStartTag: bool log: Any compatMode: str @@ -42,7 +40,7 @@ class HTMLParser: def mainLoop(self) -> None: ... def parse(self, stream: _InputStream, scripting: bool = ..., **kwargs): ... def parseFragment(self, stream: _InputStream, *args, **kwargs): ... - def parseError(self, errorcode: str = "XXX-undefined-error", datavars: Incomplete | None = None) -> None: ... + def parseError(self, errorcode: str = "XXX-undefined-error", datavars=None) -> None: ... def adjustMathMLAttributes(self, token) -> None: ... def adjustSVGAttributes(self, token) -> None: ... def adjustForeignAttributes(self, token) -> None: ... @@ -53,6 +51,6 @@ class HTMLParser: def getPhases(debug): ... def adjust_attributes(token, replacements) -> None: ... -def impliedTagToken(name, type: str = "EndTag", attributes: Incomplete | None = None, selfClosing: bool = False): ... +def impliedTagToken(name, type: str = "EndTag", attributes=None, selfClosing: bool = False): ... class ParseError(Exception): ... diff --git a/stubs/html5lib/html5lib/serializer.pyi b/stubs/html5lib/html5lib/serializer.pyi index 12ae9db51fa4..c17b2205ae43 100644 --- a/stubs/html5lib/html5lib/serializer.pyi +++ b/stubs/html5lib/html5lib/serializer.pyi @@ -32,8 +32,8 @@ class HTMLSerializer: def encode(self, string): ... def encodeStrict(self, string): ... encoding: Any - def serialize(self, treewalker, encoding: Incomplete | None = None) -> Generator[Incomplete, None, None]: ... - def render(self, treewalker, encoding: Incomplete | None = None): ... + def serialize(self, treewalker, encoding=None) -> Generator[Incomplete, None, None]: ... + def render(self, treewalker, encoding=None): ... def serializeError(self, data: str = "XXX ERROR MESSAGE NEEDED") -> None: ... class SerializeError(Exception): ... diff --git a/stubs/html5lib/html5lib/treebuilders/__init__.pyi b/stubs/html5lib/html5lib/treebuilders/__init__.pyi index b8bc40a63840..703478287fe5 100644 --- a/stubs/html5lib/html5lib/treebuilders/__init__.pyi +++ b/stubs/html5lib/html5lib/treebuilders/__init__.pyi @@ -1,6 +1,5 @@ -from _typeshed import Incomplete from typing import Any treeBuilderCache: Any -def getTreeBuilder(treeType, implementation: Incomplete | None = None, **kwargs): ... +def getTreeBuilder(treeType, implementation=None, **kwargs): ... diff --git a/stubs/html5lib/html5lib/treebuilders/base.pyi b/stubs/html5lib/html5lib/treebuilders/base.pyi index eae192172c68..577b92327b9c 100644 --- a/stubs/html5lib/html5lib/treebuilders/base.pyi +++ b/stubs/html5lib/html5lib/treebuilders/base.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any Marker: Any @@ -12,7 +11,7 @@ class Node: childNodes: Any def __init__(self, name) -> None: ... def appendChild(self, node) -> None: ... - def insertText(self, data, insertBefore: Incomplete | None = None) -> None: ... + def insertText(self, data, insertBefore=None) -> None: ... def insertBefore(self, node, refNode) -> None: ... def removeChild(self, node) -> None: ... def reparentChildren(self, newParent) -> None: ... @@ -38,19 +37,19 @@ class TreeBuilder: insertFromTable: bool document: Any def reset(self) -> None: ... - def elementInScope(self, target, variant: Incomplete | None = None): ... + def elementInScope(self, target, variant=None): ... def reconstructActiveFormattingElements(self) -> None: ... def clearActiveFormattingElements(self) -> None: ... def elementInActiveFormattingElements(self, name): ... def insertRoot(self, token) -> None: ... def insertDoctype(self, token) -> None: ... - def insertComment(self, token, parent: Incomplete | None = None) -> None: ... + def insertComment(self, token, parent=None) -> None: ... def createElement(self, token): ... def insertElementNormal(self, token): ... def insertElementTable(self, token): ... - def insertText(self, data, parent: Incomplete | None = None) -> None: ... + def insertText(self, data, parent=None) -> None: ... def getTableMisnestedNodePosition(self): ... - def generateImpliedEndTags(self, exclude: Incomplete | None = None) -> None: ... + def generateImpliedEndTags(self, exclude=None) -> None: ... def getDocument(self): ... def getFragment(self): ... def testSerializer(self, node) -> None: ... diff --git a/stubs/html5lib/html5lib/treebuilders/etree_lxml.pyi b/stubs/html5lib/html5lib/treebuilders/etree_lxml.pyi index 018bf60a60ba..3bf5bea6481f 100644 --- a/stubs/html5lib/html5lib/treebuilders/etree_lxml.pyi +++ b/stubs/html5lib/html5lib/treebuilders/etree_lxml.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from . import base @@ -39,7 +38,7 @@ class TreeBuilder(base.TreeBuilder): def getDocument(self): ... def getFragment(self): ... def insertDoctype(self, token) -> None: ... - def insertCommentInitial(self, data, parent: Incomplete | None = None) -> None: ... - def insertCommentMain(self, data, parent: Incomplete | None = None) -> None: ... + def insertCommentInitial(self, data, parent=None) -> None: ... + def insertCommentMain(self, data, parent=None) -> None: ... document: Any def insertRoot(self, token) -> None: ... diff --git a/stubs/html5lib/html5lib/treewalkers/__init__.pyi b/stubs/html5lib/html5lib/treewalkers/__init__.pyi index 8246ff05a289..62d6f2a9f5fc 100644 --- a/stubs/html5lib/html5lib/treewalkers/__init__.pyi +++ b/stubs/html5lib/html5lib/treewalkers/__init__.pyi @@ -1,4 +1,2 @@ -from _typeshed import Incomplete - -def getTreeWalker(treeType, implementation: Incomplete | None = None, **kwargs): ... +def getTreeWalker(treeType, implementation=None, **kwargs): ... def pprint(walker): ... diff --git a/stubs/html5lib/html5lib/treewalkers/base.pyi b/stubs/html5lib/html5lib/treewalkers/base.pyi index 87fdc9447e73..3e6649735266 100644 --- a/stubs/html5lib/html5lib/treewalkers/base.pyi +++ b/stubs/html5lib/html5lib/treewalkers/base.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any DOCUMENT: Any @@ -19,7 +18,7 @@ class TreeWalker: def endTag(self, namespace, name): ... def text(self, data) -> None: ... def comment(self, data): ... - def doctype(self, name, publicId: Incomplete | None = None, systemId: Incomplete | None = None): ... + def doctype(self, name, publicId=None, systemId=None): ... def entity(self, name): ... def unknown(self, nodeType): ... diff --git a/stubs/httplib2/httplib2/__init__.pyi b/stubs/httplib2/httplib2/__init__.pyi index 6e4b6dc7f320..1ae0fe340053 100644 --- a/stubs/httplib2/httplib2/__init__.pyi +++ b/stubs/httplib2/httplib2/__init__.pyi @@ -1,5 +1,4 @@ import http.client -from _typeshed import Incomplete from collections.abc import Generator from typing import Any, ClassVar from typing_extensions import Self @@ -41,7 +40,7 @@ class DigestAuthentication(Authentication): challenge: Any A1: Any def __init__(self, credentials, host, request_uri, headers, response, content, http) -> None: ... - def request(self, method, request_uri, headers, content, cnonce: Incomplete | None = None): ... + def request(self, method, request_uri, headers, content, cnonce=None): ... def response(self, response, content): ... class HmacDigestAuthentication(Authentication): @@ -87,14 +86,7 @@ class AllHosts: ... class ProxyInfo: bypass_hosts: Any def __init__( - self, - proxy_type, - proxy_host, - proxy_port, - proxy_rdns: bool = True, - proxy_user: Incomplete | None = None, - proxy_pass: Incomplete | None = None, - proxy_headers: Incomplete | None = None, + self, proxy_type, proxy_host, proxy_port, proxy_rdns: bool = True, proxy_user=None, proxy_pass=None, proxy_headers=None ) -> None: ... def astuple(self): ... def isgood(self): ... @@ -103,9 +95,7 @@ class ProxyInfo: class HTTPConnectionWithTimeout(http.client.HTTPConnection): proxy_info: Any - def __init__( - self, host, port: Incomplete | None = None, timeout: Incomplete | None = None, proxy_info: Incomplete | None = None - ) -> None: ... + def __init__(self, host, port=None, timeout=None, proxy_info=None) -> None: ... sock: Any def connect(self) -> None: ... @@ -119,16 +109,16 @@ class HTTPSConnectionWithTimeout(http.client.HTTPSConnection): def __init__( self, host, - port: Incomplete | None = None, - key_file: Incomplete | None = None, - cert_file: Incomplete | None = None, - timeout: Incomplete | None = None, - proxy_info: Incomplete | None = None, - ca_certs: Incomplete | None = None, + port=None, + key_file=None, + cert_file=None, + timeout=None, + proxy_info=None, + ca_certs=None, disable_ssl_certificate_validation: bool = False, - tls_maximum_version: Incomplete | None = None, - tls_minimum_version: Incomplete | None = None, - key_password: Incomplete | None = None, + tls_maximum_version=None, + tls_minimum_version=None, + key_password=None, ) -> None: ... sock: Any def connect(self) -> None: ... @@ -155,27 +145,19 @@ class Http: forward_authorization_headers: bool def __init__( self, - cache: Incomplete | None = None, - timeout: Incomplete | None = None, + cache=None, + timeout=None, proxy_info=..., - ca_certs: Incomplete | None = None, + ca_certs=None, disable_ssl_certificate_validation: bool = False, - tls_maximum_version: Incomplete | None = None, - tls_minimum_version: Incomplete | None = None, + tls_maximum_version=None, + tls_minimum_version=None, ) -> None: ... def close(self) -> None: ... def add_credentials(self, name, password, domain: str = "") -> None: ... - def add_certificate(self, key, cert, domain, password: Incomplete | None = None) -> None: ... + def add_certificate(self, key, cert, domain, password=None) -> None: ... def clear_credentials(self) -> None: ... - def request( - self, - uri, - method: str = "GET", - body: Incomplete | None = None, - headers: Incomplete | None = None, - redirections=5, - connection_type: Incomplete | None = None, - ): ... + def request(self, uri, method: str = "GET", body=None, headers=None, redirections=5, connection_type=None): ... class Response(dict[str, Any]): fromcache: bool diff --git a/stubs/httplib2/httplib2/socks.pyi b/stubs/httplib2/httplib2/socks.pyi index 25d9b60d5cab..f5ef620f8d78 100644 --- a/stubs/httplib2/httplib2/socks.pyi +++ b/stubs/httplib2/httplib2/socks.pyi @@ -1,5 +1,4 @@ import socket -from _typeshed import Incomplete PROXY_TYPE_SOCKS4: int PROXY_TYPE_SOCKS5: int @@ -13,28 +12,14 @@ class Socks5Error(ProxyError): ... class Socks4Error(ProxyError): ... class HTTPError(ProxyError): ... -def setdefaultproxy( - proxytype: Incomplete | None = None, - addr: Incomplete | None = None, - port: Incomplete | None = None, - rdns: bool = True, - username: Incomplete | None = None, - password: Incomplete | None = None, -) -> None: ... +def setdefaultproxy(proxytype=None, addr=None, port=None, rdns: bool = True, username=None, password=None) -> None: ... def wrapmodule(module) -> None: ... class socksocket(socket.socket): - def __init__(self, family=..., type=..., proto: int = 0, _sock: Incomplete | None = None) -> None: ... + def __init__(self, family=..., type=..., proto: int = 0, _sock=None) -> None: ... def sendall(self, content, *args): ... def setproxy( - self, - proxytype: Incomplete | None = None, - addr: Incomplete | None = None, - port: Incomplete | None = None, - rdns: bool = True, - username: Incomplete | None = None, - password: Incomplete | None = None, - headers: Incomplete | None = None, + self, proxytype=None, addr=None, port=None, rdns: bool = True, username=None, password=None, headers=None ) -> None: ... def getproxysockname(self): ... def getproxypeername(self): ... diff --git a/stubs/hvac/hvac/api/auth_methods/approle.pyi b/stubs/hvac/hvac/api/auth_methods/approle.pyi index 6a32d5167ccb..530e11f8bf0e 100644 --- a/stubs/hvac/hvac/api/auth_methods/approle.pyi +++ b/stubs/hvac/hvac/api/auth_methods/approle.pyi @@ -1,25 +1,23 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase class AppRole(VaultApiBase): def create_or_update_approle( self, role_name, - bind_secret_id: Incomplete | None = None, - secret_id_bound_cidrs: Incomplete | None = None, - secret_id_num_uses: Incomplete | None = None, - secret_id_ttl: Incomplete | None = None, - enable_local_secret_ids: Incomplete | None = None, - token_ttl: Incomplete | None = None, - token_max_ttl: Incomplete | None = None, - token_policies: Incomplete | None = None, - token_bound_cidrs: Incomplete | None = None, - token_explicit_max_ttl: Incomplete | None = None, - token_no_default_policy: Incomplete | None = None, - token_num_uses: Incomplete | None = None, - token_period: Incomplete | None = None, - token_type: Incomplete | None = None, + bind_secret_id=None, + secret_id_bound_cidrs=None, + secret_id_num_uses=None, + secret_id_ttl=None, + enable_local_secret_ids=None, + token_ttl=None, + token_max_ttl=None, + token_policies=None, + token_bound_cidrs=None, + token_explicit_max_ttl=None, + token_no_default_policy=None, + token_num_uses=None, + token_period=None, + token_type=None, mount_point="approle", ): ... def list_roles(self, mount_point="approle"): ... @@ -28,27 +26,14 @@ class AppRole(VaultApiBase): def read_role_id(self, role_name, mount_point="approle"): ... def update_role_id(self, role_name, role_id, mount_point="approle"): ... def generate_secret_id( - self, - role_name, - metadata: Incomplete | None = None, - cidr_list: Incomplete | None = None, - token_bound_cidrs: Incomplete | None = None, - mount_point="approle", - wrap_ttl: Incomplete | None = None, + self, role_name, metadata=None, cidr_list=None, token_bound_cidrs=None, mount_point="approle", wrap_ttl=None ): ... def create_custom_secret_id( - self, - role_name, - secret_id, - metadata: Incomplete | None = None, - cidr_list: Incomplete | None = None, - token_bound_cidrs: Incomplete | None = None, - mount_point="approle", - wrap_ttl: Incomplete | None = None, + self, role_name, secret_id, metadata=None, cidr_list=None, token_bound_cidrs=None, mount_point="approle", wrap_ttl=None ): ... def read_secret_id(self, role_name, secret_id, mount_point="approle"): ... def destroy_secret_id(self, role_name, secret_id, mount_point="approle"): ... def list_secret_id_accessors(self, role_name, mount_point="approle"): ... def read_secret_id_accessor(self, role_name, secret_id_accessor, mount_point="approle"): ... def destroy_secret_id_accessor(self, role_name, secret_id_accessor, mount_point="approle"): ... - def login(self, role_id, secret_id: Incomplete | None = None, use_token: bool = True, mount_point="approle"): ... + def login(self, role_id, secret_id=None, use_token: bool = True, mount_point="approle"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/aws.pyi b/stubs/hvac/hvac/api/auth_methods/aws.pyi index e89a9b1d008b..79dba1a592d6 100644 --- a/stubs/hvac/hvac/api/auth_methods/aws.pyi +++ b/stubs/hvac/hvac/api/auth_methods/aws.pyi @@ -7,13 +7,13 @@ logger: Incomplete class Aws(VaultApiBase): def configure( self, - max_retries: Incomplete | None = None, - access_key: Incomplete | None = None, - secret_key: Incomplete | None = None, - endpoint: Incomplete | None = None, - iam_endpoint: Incomplete | None = None, - sts_endpoint: Incomplete | None = None, - iam_server_id_header_value: Incomplete | None = None, + max_retries=None, + access_key=None, + secret_key=None, + endpoint=None, + iam_endpoint=None, + sts_endpoint=None, + iam_server_id_header_value=None, mount_point: str = "aws", sts_region: str | None = None, ): ... @@ -21,16 +21,14 @@ class Aws(VaultApiBase): def delete_config(self, mount_point: str = "aws"): ... def configure_identity_integration( self, - iam_alias: Incomplete | None = None, - ec2_alias: Incomplete | None = None, + iam_alias=None, + ec2_alias=None, mount_point: str = "aws", iam_metadata: str | list[str] | None = None, ec2_metadata: str | list[str] | None = None, ): ... def read_identity_integration(self, mount_point: str = "aws"): ... - def create_certificate_configuration( - self, cert_name, aws_public_cert, document_type: Incomplete | None = None, mount_point: str = "aws" - ): ... + def create_certificate_configuration(self, cert_name, aws_public_cert, document_type=None, mount_point: str = "aws"): ... def read_certificate_configuration(self, cert_name, mount_point: str = "aws"): ... def delete_certificate_configuration(self, cert_name, mount_point: str = "aws"): ... def list_certificate_configurations(self, mount_point: str = "aws"): ... @@ -38,39 +36,35 @@ class Aws(VaultApiBase): def read_sts_role(self, account_id, mount_point: str = "aws"): ... def list_sts_roles(self, mount_point: str = "aws"): ... def delete_sts_role(self, account_id, mount_point: str = "aws"): ... - def configure_identity_whitelist_tidy( - self, safety_buffer: Incomplete | None = None, disable_periodic_tidy: Incomplete | None = None, mount_point: str = "aws" - ): ... + def configure_identity_whitelist_tidy(self, safety_buffer=None, disable_periodic_tidy=None, mount_point: str = "aws"): ... def read_identity_whitelist_tidy(self, mount_point: str = "aws"): ... def delete_identity_whitelist_tidy(self, mount_point: str = "aws"): ... - def configure_role_tag_blacklist_tidy( - self, safety_buffer: Incomplete | None = None, disable_periodic_tidy: Incomplete | None = None, mount_point: str = "aws" - ): ... + def configure_role_tag_blacklist_tidy(self, safety_buffer=None, disable_periodic_tidy=None, mount_point: str = "aws"): ... def read_role_tag_blacklist_tidy(self, mount_point: str = "aws"): ... def delete_role_tag_blacklist_tidy(self, mount_point: str = "aws"): ... def create_role( self, role, - auth_type: Incomplete | None = None, - bound_ami_id: Incomplete | None = None, - bound_account_id: Incomplete | None = None, - bound_region: Incomplete | None = None, - bound_vpc_id: Incomplete | None = None, - bound_subnet_id: Incomplete | None = None, - bound_iam_role_arn: Incomplete | None = None, - bound_iam_instance_profile_arn: Incomplete | None = None, - bound_ec2_instance_id: Incomplete | None = None, - role_tag: Incomplete | None = None, - bound_iam_principal_arn: Incomplete | None = None, - inferred_entity_type: Incomplete | None = None, - inferred_aws_region: Incomplete | None = None, - resolve_aws_unique_ids: Incomplete | None = None, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - period: Incomplete | None = None, - policies: Incomplete | None = None, - allow_instance_migration: Incomplete | None = None, - disallow_reauthentication: Incomplete | None = None, + auth_type=None, + bound_ami_id=None, + bound_account_id=None, + bound_region=None, + bound_vpc_id=None, + bound_subnet_id=None, + bound_iam_role_arn=None, + bound_iam_instance_profile_arn=None, + bound_ec2_instance_id=None, + role_tag=None, + bound_iam_principal_arn=None, + inferred_entity_type=None, + inferred_aws_region=None, + resolve_aws_unique_ids=None, + ttl=None, + max_ttl=None, + period=None, + policies=None, + allow_instance_migration=None, + disallow_reauthentication=None, mount_point: str = "aws", ): ... def read_role(self, role, mount_point: str = "aws"): ... @@ -79,32 +73,25 @@ class Aws(VaultApiBase): def create_role_tags( self, role, - policies: Incomplete | None = None, - max_ttl: Incomplete | None = None, - instance_id: Incomplete | None = None, - allow_instance_migration: Incomplete | None = None, - disallow_reauthentication: Incomplete | None = None, + policies=None, + max_ttl=None, + instance_id=None, + allow_instance_migration=None, + disallow_reauthentication=None, mount_point: str = "aws", ): ... def iam_login( self, access_key, secret_key, - session_token: Incomplete | None = None, - header_value: Incomplete | None = None, - role: Incomplete | None = None, + session_token=None, + header_value=None, + role=None, use_token: bool = True, region: str = "us-east-1", mount_point: str = "aws", ): ... - def ec2_login( - self, - pkcs7, - nonce: Incomplete | None = None, - role: Incomplete | None = None, - use_token: bool = True, - mount_point: str = "aws", - ): ... + def ec2_login(self, pkcs7, nonce=None, role=None, use_token: bool = True, mount_point: str = "aws"): ... def place_role_tags_in_blacklist(self, role_tag, mount_point: str = "aws"): ... def read_role_tag_blacklist(self, role_tag, mount_point: str = "aws"): ... def list_blacklist_tags(self, mount_point: str = "aws"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/azure.pyi b/stubs/hvac/hvac/api/auth_methods/azure.pyi index cfa1e2447ef6..5198b3c2e7a1 100644 --- a/stubs/hvac/hvac/api/auth_methods/azure.pyi +++ b/stubs/hvac/hvac/api/auth_methods/azure.pyi @@ -6,31 +6,23 @@ DEFAULT_MOUNT_POINT: str logger: Incomplete class Azure(VaultApiBase): - def configure( - self, - tenant_id, - resource, - environment: Incomplete | None = None, - client_id: Incomplete | None = None, - client_secret: Incomplete | None = None, - mount_point="azure", - ): ... + def configure(self, tenant_id, resource, environment=None, client_id=None, client_secret=None, mount_point="azure"): ... def read_config(self, mount_point="azure"): ... def delete_config(self, mount_point="azure"): ... def create_role( self, name, - policies: Incomplete | None = None, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - period: Incomplete | None = None, - bound_service_principal_ids: Incomplete | None = None, - bound_group_ids: Incomplete | None = None, - bound_locations: Incomplete | None = None, - bound_subscription_ids: Incomplete | None = None, - bound_resource_groups: Incomplete | None = None, - bound_scale_sets: Incomplete | None = None, - num_uses: Incomplete | None = None, + policies=None, + ttl=None, + max_ttl=None, + period=None, + bound_service_principal_ids=None, + bound_group_ids=None, + bound_locations=None, + bound_subscription_ids=None, + bound_resource_groups=None, + bound_scale_sets=None, + num_uses=None, mount_point="azure", ): ... def read_role(self, name, mount_point="azure"): ... @@ -40,10 +32,10 @@ class Azure(VaultApiBase): self, role, jwt, - subscription_id: Incomplete | None = None, - resource_group_name: Incomplete | None = None, - vm_name: Incomplete | None = None, - vmss_name: Incomplete | None = None, + subscription_id=None, + resource_group_name=None, + vm_name=None, + vmss_name=None, use_token: bool = True, mount_point="azure", ): ... diff --git a/stubs/hvac/hvac/api/auth_methods/gcp.pyi b/stubs/hvac/hvac/api/auth_methods/gcp.pyi index 1c619a52f324..8a38915c3637 100644 --- a/stubs/hvac/hvac/api/auth_methods/gcp.pyi +++ b/stubs/hvac/hvac/api/auth_methods/gcp.pyi @@ -7,10 +7,7 @@ logger: Incomplete class Gcp(VaultApiBase): def configure( - self, - credentials: Incomplete | None = None, - google_certs_endpoint="https://www.googleapis.com/oauth2/v3/certs", - mount_point="gcp", + self, credentials=None, google_certs_endpoint="https://www.googleapis.com/oauth2/v3/certs", mount_point="gcp" ): ... def read_config(self, mount_point="gcp"): ... def delete_config(self, mount_point="gcp"): ... @@ -19,25 +16,21 @@ class Gcp(VaultApiBase): name, role_type, project_id, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - period: Incomplete | None = None, - policies: Incomplete | None = None, - bound_service_accounts: Incomplete | None = None, - max_jwt_exp: Incomplete | None = None, - allow_gce_inference: Incomplete | None = None, - bound_zones: Incomplete | None = None, - bound_regions: Incomplete | None = None, - bound_instance_groups: Incomplete | None = None, - bound_labels: Incomplete | None = None, + ttl=None, + max_ttl=None, + period=None, + policies=None, + bound_service_accounts=None, + max_jwt_exp=None, + allow_gce_inference=None, + bound_zones=None, + bound_regions=None, + bound_instance_groups=None, + bound_labels=None, mount_point="gcp", ): ... - def edit_service_accounts_on_iam_role( - self, name, add: Incomplete | None = None, remove: Incomplete | None = None, mount_point="gcp" - ): ... - def edit_labels_on_gce_role( - self, name, add: Incomplete | None = None, remove: Incomplete | None = None, mount_point="gcp" - ): ... + def edit_service_accounts_on_iam_role(self, name, add=None, remove=None, mount_point="gcp"): ... + def edit_labels_on_gce_role(self, name, add=None, remove=None, mount_point="gcp"): ... def read_role(self, name, mount_point="gcp"): ... def list_roles(self, mount_point="gcp"): ... def delete_role(self, role, mount_point="gcp"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/github.pyi b/stubs/hvac/hvac/api/auth_methods/github.pyi index 4f1ba8eae6eb..3005c03d599a 100644 --- a/stubs/hvac/hvac/api/auth_methods/github.pyi +++ b/stubs/hvac/hvac/api/auth_methods/github.pyi @@ -1,21 +1,12 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str class Github(VaultApiBase): - def configure( - self, - organization, - base_url: Incomplete | None = None, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - mount_point="github", - ): ... + def configure(self, organization, base_url=None, ttl=None, max_ttl=None, mount_point="github"): ... def read_configuration(self, mount_point="github"): ... - def map_team(self, team_name, policies: Incomplete | None = None, mount_point="github"): ... + def map_team(self, team_name, policies=None, mount_point="github"): ... def read_team_mapping(self, team_name, mount_point="github"): ... - def map_user(self, user_name, policies: Incomplete | None = None, mount_point="github"): ... + def map_user(self, user_name, policies=None, mount_point="github"): ... def read_user_mapping(self, user_name, mount_point="github"): ... def login(self, token, use_token: bool = True, mount_point="github"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/jwt.pyi b/stubs/hvac/hvac/api/auth_methods/jwt.pyi index 98829d4d969c..9db9396fe388 100644 --- a/stubs/hvac/hvac/api/auth_methods/jwt.pyi +++ b/stubs/hvac/hvac/api/auth_methods/jwt.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase class JWT(VaultApiBase): @@ -7,55 +5,55 @@ class JWT(VaultApiBase): def resolve_path(self, path): ... def configure( self, - oidc_discovery_url: Incomplete | None = None, - oidc_discovery_ca_pem: Incomplete | None = None, - oidc_client_id: Incomplete | None = None, - oidc_client_secret: Incomplete | None = None, - oidc_response_mode: Incomplete | None = None, - oidc_response_types: Incomplete | None = None, - jwks_url: Incomplete | None = None, - jwks_ca_pem: Incomplete | None = None, - jwt_validation_pubkeys: Incomplete | None = None, - bound_issuer: Incomplete | None = None, - jwt_supported_algs: Incomplete | None = None, - default_role: Incomplete | None = None, - provider_config: Incomplete | None = None, + oidc_discovery_url=None, + oidc_discovery_ca_pem=None, + oidc_client_id=None, + oidc_client_secret=None, + oidc_response_mode=None, + oidc_response_types=None, + jwks_url=None, + jwks_ca_pem=None, + jwt_validation_pubkeys=None, + bound_issuer=None, + jwt_supported_algs=None, + default_role=None, + provider_config=None, path: str | None = None, namespace_in_state: bool | None = None, ): ... - def read_config(self, path: Incomplete | None = None): ... + def read_config(self, path=None): ... def create_role( self, name, user_claim, allowed_redirect_uris, role_type: str = "jwt", - bound_audiences: Incomplete | None = None, - clock_skew_leeway: Incomplete | None = None, - expiration_leeway: Incomplete | None = None, - not_before_leeway: Incomplete | None = None, - bound_subject: Incomplete | None = None, - bound_claims: Incomplete | None = None, - groups_claim: Incomplete | None = None, - claim_mappings: Incomplete | None = None, - oidc_scopes: Incomplete | None = None, + bound_audiences=None, + clock_skew_leeway=None, + expiration_leeway=None, + not_before_leeway=None, + bound_subject=None, + bound_claims=None, + groups_claim=None, + claim_mappings=None, + oidc_scopes=None, bound_claims_type: str = "string", verbose_oidc_logging: bool = False, - token_ttl: Incomplete | None = None, - token_max_ttl: Incomplete | None = None, - token_policies: Incomplete | None = None, - token_bound_cidrs: Incomplete | None = None, - token_explicit_max_ttl: Incomplete | None = None, - token_no_default_policy: Incomplete | None = None, - token_num_uses: Incomplete | None = None, - token_period: Incomplete | None = None, - token_type: Incomplete | None = None, - path: Incomplete | None = None, - user_claim_json_pointer: Incomplete | None = None, + token_ttl=None, + token_max_ttl=None, + token_policies=None, + token_bound_cidrs=None, + token_explicit_max_ttl=None, + token_no_default_policy=None, + token_num_uses=None, + token_period=None, + token_type=None, + path=None, + user_claim_json_pointer=None, ): ... - def read_role(self, name, path: Incomplete | None = None): ... - def list_roles(self, path: Incomplete | None = None): ... - def delete_role(self, name, path: Incomplete | None = None): ... - def oidc_authorization_url_request(self, role, redirect_uri, path: Incomplete | None = None): ... - def oidc_callback(self, state, nonce, code, path: Incomplete | None = None): ... - def jwt_login(self, role, jwt, use_token: bool = True, path: Incomplete | None = None): ... + def read_role(self, name, path=None): ... + def list_roles(self, path=None): ... + def delete_role(self, name, path=None): ... + def oidc_authorization_url_request(self, role, redirect_uri, path=None): ... + def oidc_callback(self, state, nonce, code, path=None): ... + def jwt_login(self, role, jwt, use_token: bool = True, path=None): ... diff --git a/stubs/hvac/hvac/api/auth_methods/kubernetes.pyi b/stubs/hvac/hvac/api/auth_methods/kubernetes.pyi index f77e4c5d7082..490238b0200d 100644 --- a/stubs/hvac/hvac/api/auth_methods/kubernetes.pyi +++ b/stubs/hvac/hvac/api/auth_methods/kubernetes.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -8,10 +6,10 @@ class Kubernetes(VaultApiBase): def configure( self, kubernetes_host, - kubernetes_ca_cert: Incomplete | None = None, - token_reviewer_jwt: Incomplete | None = None, - pem_keys: Incomplete | None = None, - issuer: Incomplete | None = None, + kubernetes_ca_cert=None, + token_reviewer_jwt=None, + pem_keys=None, + issuer=None, mount_point="kubernetes", disable_local_ca_jwt: bool = False, ): ... @@ -21,13 +19,13 @@ class Kubernetes(VaultApiBase): name, bound_service_account_names, bound_service_account_namespaces, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - period: Incomplete | None = None, - policies: Incomplete | None = None, + ttl=None, + max_ttl=None, + period=None, + policies=None, token_type: str = "", mount_point="kubernetes", - alias_name_source: Incomplete | None = None, + alias_name_source=None, ): ... def read_role(self, name, mount_point="kubernetes"): ... def list_roles(self, mount_point="kubernetes"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/ldap.pyi b/stubs/hvac/hvac/api/auth_methods/ldap.pyi index 1a940a8a59fb..f2d19fc58cb6 100644 --- a/stubs/hvac/hvac/api/auth_methods/ldap.pyi +++ b/stubs/hvac/hvac/api/auth_methods/ldap.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -7,53 +5,51 @@ DEFAULT_MOUNT_POINT: str class Ldap(VaultApiBase): def configure( self, - userdn: Incomplete | None = None, - groupdn: Incomplete | None = None, - url: Incomplete | None = None, - case_sensitive_names: Incomplete | None = None, - starttls: Incomplete | None = None, - tls_min_version: Incomplete | None = None, - tls_max_version: Incomplete | None = None, - insecure_tls: Incomplete | None = None, - certificate: Incomplete | None = None, - binddn: Incomplete | None = None, - bindpass: Incomplete | None = None, - userattr: Incomplete | None = None, - discoverdn: Incomplete | None = None, + userdn=None, + groupdn=None, + url=None, + case_sensitive_names=None, + starttls=None, + tls_min_version=None, + tls_max_version=None, + insecure_tls=None, + certificate=None, + binddn=None, + bindpass=None, + userattr=None, + discoverdn=None, deny_null_bind: bool = True, - upndomain: Incomplete | None = None, - groupfilter: Incomplete | None = None, - groupattr: Incomplete | None = None, - use_token_groups: Incomplete | None = None, - token_ttl: Incomplete | None = None, - token_max_ttl: Incomplete | None = None, + upndomain=None, + groupfilter=None, + groupattr=None, + use_token_groups=None, + token_ttl=None, + token_max_ttl=None, mount_point="ldap", *, - anonymous_group_search: Incomplete | None = None, - client_tls_cert: Incomplete | None = None, - client_tls_key: Incomplete | None = None, - connection_timeout: Incomplete | None = None, - dereference_aliases: Incomplete | None = None, - max_page_size: Incomplete | None = None, - request_timeout: Incomplete | None = None, - token_bound_cidrs: Incomplete | None = None, - token_explicit_max_ttl: Incomplete | None = None, - token_no_default_policy: Incomplete | None = None, - token_num_uses: Incomplete | None = None, - token_period: Incomplete | None = None, - token_policies: Incomplete | None = None, - token_type: Incomplete | None = None, - userfilter: Incomplete | None = None, - username_as_alias: Incomplete | None = None, + anonymous_group_search=None, + client_tls_cert=None, + client_tls_key=None, + connection_timeout=None, + dereference_aliases=None, + max_page_size=None, + request_timeout=None, + token_bound_cidrs=None, + token_explicit_max_ttl=None, + token_no_default_policy=None, + token_num_uses=None, + token_period=None, + token_policies=None, + token_type=None, + userfilter=None, + username_as_alias=None, ): ... def read_configuration(self, mount_point="ldap"): ... - def create_or_update_group(self, name, policies: Incomplete | None = None, mount_point="ldap"): ... + def create_or_update_group(self, name, policies=None, mount_point="ldap"): ... def list_groups(self, mount_point="ldap"): ... def read_group(self, name, mount_point="ldap"): ... def delete_group(self, name, mount_point="ldap"): ... - def create_or_update_user( - self, username, policies: Incomplete | None = None, groups: Incomplete | None = None, mount_point="ldap" - ): ... + def create_or_update_user(self, username, policies=None, groups=None, mount_point="ldap"): ... def list_users(self, mount_point="ldap"): ... def read_user(self, username, mount_point="ldap"): ... def delete_user(self, username, mount_point="ldap"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi b/stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi index 37e8bcb404ac..42598cb7fd93 100644 --- a/stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi +++ b/stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi @@ -9,7 +9,5 @@ class LegacyMfa(VaultApiBase): def configure(self, mount_point, mfa_type: str = "duo", force: bool = False): ... def read_configuration(self, mount_point): ... def configure_duo_access(self, mount_point, host, integration_key, secret_key): ... - def configure_duo_behavior( - self, mount_point, push_info: Incomplete | None = None, user_agent: Incomplete | None = None, username_format: str = "%s" - ): ... + def configure_duo_behavior(self, mount_point, push_info=None, user_agent=None, username_format: str = "%s"): ... def read_duo_behavior_configuration(self, mount_point): ... diff --git a/stubs/hvac/hvac/api/auth_methods/oidc.pyi b/stubs/hvac/hvac/api/auth_methods/oidc.pyi index 4dbe6b14917a..c53113665a6e 100644 --- a/stubs/hvac/hvac/api/auth_methods/oidc.pyi +++ b/stubs/hvac/hvac/api/auth_methods/oidc.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.auth_methods.jwt import JWT class OIDC(JWT): @@ -10,26 +8,26 @@ class OIDC(JWT): user_claim, allowed_redirect_uris, role_type: str = "oidc", - bound_audiences: Incomplete | None = None, - clock_skew_leeway: Incomplete | None = None, - expiration_leeway: Incomplete | None = None, - not_before_leeway: Incomplete | None = None, - bound_subject: Incomplete | None = None, - bound_claims: Incomplete | None = None, - groups_claim: Incomplete | None = None, - claim_mappings: Incomplete | None = None, - oidc_scopes: Incomplete | None = None, + bound_audiences=None, + clock_skew_leeway=None, + expiration_leeway=None, + not_before_leeway=None, + bound_subject=None, + bound_claims=None, + groups_claim=None, + claim_mappings=None, + oidc_scopes=None, bound_claims_type: str = "string", verbose_oidc_logging: bool = False, - token_ttl: Incomplete | None = None, - token_max_ttl: Incomplete | None = None, - token_policies: Incomplete | None = None, - token_bound_cidrs: Incomplete | None = None, - token_explicit_max_ttl: Incomplete | None = None, - token_no_default_policy: Incomplete | None = None, - token_num_uses: Incomplete | None = None, - token_period: Incomplete | None = None, - token_type: Incomplete | None = None, - path: Incomplete | None = None, - user_claim_json_pointer: Incomplete | None = None, + token_ttl=None, + token_max_ttl=None, + token_policies=None, + token_bound_cidrs=None, + token_explicit_max_ttl=None, + token_no_default_policy=None, + token_num_uses=None, + token_period=None, + token_type=None, + path=None, + user_claim_json_pointer=None, ) -> None: ... diff --git a/stubs/hvac/hvac/api/auth_methods/okta.pyi b/stubs/hvac/hvac/api/auth_methods/okta.pyi index c47f7ffaaaf7..d48dfbf6de1f 100644 --- a/stubs/hvac/hvac/api/auth_methods/okta.pyi +++ b/stubs/hvac/hvac/api/auth_methods/okta.pyi @@ -1,29 +1,18 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str class Okta(VaultApiBase): def configure( - self, - org_name, - api_token: Incomplete | None = None, - base_url: Incomplete | None = None, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - bypass_okta_mfa: Incomplete | None = None, - mount_point="okta", + self, org_name, api_token=None, base_url=None, ttl=None, max_ttl=None, bypass_okta_mfa=None, mount_point="okta" ): ... def read_config(self, mount_point="okta"): ... def list_users(self, mount_point="okta"): ... - def register_user( - self, username, groups: Incomplete | None = None, policies: Incomplete | None = None, mount_point="okta" - ): ... + def register_user(self, username, groups=None, policies=None, mount_point="okta"): ... def read_user(self, username, mount_point="okta"): ... def delete_user(self, username, mount_point="okta"): ... def list_groups(self, mount_point="okta"): ... - def register_group(self, name, policies: Incomplete | None = None, mount_point="okta"): ... + def register_group(self, name, policies=None, mount_point="okta"): ... def read_group(self, name, mount_point="okta"): ... def delete_group(self, name, mount_point="okta"): ... def login(self, username, password, use_token: bool = True, mount_point="okta"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/radius.pyi b/stubs/hvac/hvac/api/auth_methods/radius.pyi index bbfaff2fee4d..1db73c5bef9f 100644 --- a/stubs/hvac/hvac/api/auth_methods/radius.pyi +++ b/stubs/hvac/hvac/api/auth_methods/radius.pyi @@ -1,22 +1,13 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str class Radius(VaultApiBase): def configure( - self, - host, - secret, - port: Incomplete | None = None, - unregistered_user_policies: Incomplete | None = None, - dial_timeout: Incomplete | None = None, - nas_port: Incomplete | None = None, - mount_point="radius", + self, host, secret, port=None, unregistered_user_policies=None, dial_timeout=None, nas_port=None, mount_point="radius" ): ... def read_configuration(self, mount_point="radius"): ... - def register_user(self, username, policies: Incomplete | None = None, mount_point="radius"): ... + def register_user(self, username, policies=None, mount_point="radius"): ... def list_users(self, mount_point="radius"): ... def read_user(self, username, mount_point="radius"): ... def delete_user(self, username, mount_point="radius"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/token.pyi b/stubs/hvac/hvac/api/auth_methods/token.pyi index 9d630231cfc6..5500be2fcab1 100644 --- a/stubs/hvac/hvac/api/auth_methods/token.pyi +++ b/stubs/hvac/hvac/api/auth_methods/token.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -7,50 +5,48 @@ DEFAULT_MOUNT_POINT: str class Token(VaultApiBase): def create( self, - id: Incomplete | None = None, - role_name: Incomplete | None = None, - policies: Incomplete | None = None, - meta: Incomplete | None = None, + id=None, + role_name=None, + policies=None, + meta=None, no_parent: bool = False, no_default_policy: bool = False, renewable: bool = True, - ttl: Incomplete | None = None, - type: Incomplete | None = None, - explicit_max_ttl: Incomplete | None = None, + ttl=None, + type=None, + explicit_max_ttl=None, display_name: str = "token", num_uses: int = 0, - period: Incomplete | None = None, - entity_alias: Incomplete | None = None, - wrap_ttl: Incomplete | None = None, + period=None, + entity_alias=None, + wrap_ttl=None, mount_point="token", ): ... def create_orphan( self, - id: Incomplete | None = None, - role_name: Incomplete | None = None, - policies: Incomplete | None = None, - meta: Incomplete | None = None, + id=None, + role_name=None, + policies=None, + meta=None, no_default_policy: bool = False, renewable: bool = True, - ttl: Incomplete | None = None, - type: Incomplete | None = None, - explicit_max_ttl: Incomplete | None = None, + ttl=None, + type=None, + explicit_max_ttl=None, display_name: str = "token", num_uses: int = 0, - period: Incomplete | None = None, - entity_alias: Incomplete | None = None, - wrap_ttl: Incomplete | None = None, + period=None, + entity_alias=None, + wrap_ttl=None, mount_point="token", ): ... def list_accessors(self, mount_point="token"): ... def lookup(self, token, mount_point="token"): ... def lookup_self(self, mount_point="token"): ... def lookup_accessor(self, accessor, mount_point="token"): ... - def renew(self, token, increment: Incomplete | None = None, wrap_ttl: Incomplete | None = None, mount_point="token"): ... - def renew_self(self, increment: Incomplete | None = None, wrap_ttl: Incomplete | None = None, mount_point="token"): ... - def renew_accessor( - self, accessor, increment: Incomplete | None = None, wrap_ttl: Incomplete | None = None, mount_point="token" - ): ... + def renew(self, token, increment=None, wrap_ttl=None, mount_point="token"): ... + def renew_self(self, increment=None, wrap_ttl=None, mount_point="token"): ... + def renew_accessor(self, accessor, increment=None, wrap_ttl=None, mount_point="token"): ... def revoke(self, token, mount_point="token"): ... def revoke_self(self, mount_point="token"): ... def revoke_accessor(self, accessor, mount_point="token"): ... @@ -60,15 +56,15 @@ class Token(VaultApiBase): def create_or_update_role( self, role_name, - allowed_policies: Incomplete | None = None, - disallowed_policies: Incomplete | None = None, + allowed_policies=None, + disallowed_policies=None, orphan: bool = False, renewable: bool = True, - path_suffix: Incomplete | None = None, - allowed_entity_aliases: Incomplete | None = None, + path_suffix=None, + allowed_entity_aliases=None, mount_point="token", - token_period: Incomplete | None = None, - token_explicit_max_ttl: Incomplete | None = None, + token_period=None, + token_explicit_max_ttl=None, ): ... def delete_role(self, role_name, mount_point="token"): ... def tidy(self, mount_point="token"): ... diff --git a/stubs/hvac/hvac/api/auth_methods/userpass.pyi b/stubs/hvac/hvac/api/auth_methods/userpass.pyi index 60677915cb61..d8991c0b9f2f 100644 --- a/stubs/hvac/hvac/api/auth_methods/userpass.pyi +++ b/stubs/hvac/hvac/api/auth_methods/userpass.pyi @@ -1,13 +1,9 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str class Userpass(VaultApiBase): - def create_or_update_user( - self, username, password: Incomplete | None = None, policies: Incomplete | None = None, mount_point="userpass", **kwargs - ): ... + def create_or_update_user(self, username, password=None, policies=None, mount_point="userpass", **kwargs): ... def list_user(self, mount_point="userpass"): ... def read_user(self, username, mount_point="userpass"): ... def delete_user(self, username, mount_point="userpass"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/active_directory.pyi b/stubs/hvac/hvac/api/secrets_engines/active_directory.pyi index 1f9553368fd9..f7d527c75232 100644 --- a/stubs/hvac/hvac/api/secrets_engines/active_directory.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/active_directory.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -7,21 +5,19 @@ DEFAULT_MOUNT_POINT: str class ActiveDirectory(VaultApiBase): def configure( self, - binddn: Incomplete | None = None, - bindpass: Incomplete | None = None, - url: Incomplete | None = None, - userdn: Incomplete | None = None, - upndomain: Incomplete | None = None, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, + binddn=None, + bindpass=None, + url=None, + userdn=None, + upndomain=None, + ttl=None, + max_ttl=None, mount_point="ad", *args, **kwargs, ): ... def read_config(self, mount_point="ad"): ... - def create_or_update_role( - self, name, service_account_name: Incomplete | None = None, ttl: Incomplete | None = None, mount_point="ad" - ): ... + def create_or_update_role(self, name, service_account_name=None, ttl=None, mount_point="ad"): ... def read_role(self, name, mount_point="ad"): ... def list_roles(self, mount_point="ad"): ... def delete_role(self, name, mount_point="ad"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/aws.pyi b/stubs/hvac/hvac/api/secrets_engines/aws.pyi index dd2dde1d8e3f..373d55a4e0e5 100644 --- a/stubs/hvac/hvac/api/secrets_engines/aws.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/aws.pyi @@ -1,17 +1,8 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase class Aws(VaultApiBase): def configure_root_iam_credentials( - self, - access_key, - secret_key, - region: Incomplete | None = None, - iam_endpoint: Incomplete | None = None, - sts_endpoint: Incomplete | None = None, - max_retries: Incomplete | None = None, - mount_point="aws", + self, access_key, secret_key, region=None, iam_endpoint=None, sts_endpoint=None, max_retries=None, mount_point="aws" ): ... def rotate_root_iam_credentials(self, mount_point="aws"): ... def configure_lease(self, lease, lease_max, mount_point="aws"): ... @@ -20,24 +11,18 @@ class Aws(VaultApiBase): self, name, credential_type, - policy_document: Incomplete | None = None, - default_sts_ttl: Incomplete | None = None, - max_sts_ttl: Incomplete | None = None, - role_arns: Incomplete | None = None, - policy_arns: Incomplete | None = None, + policy_document=None, + default_sts_ttl=None, + max_sts_ttl=None, + role_arns=None, + policy_arns=None, legacy_params: bool = False, - iam_tags: Incomplete | None = None, + iam_tags=None, mount_point="aws", ): ... def read_role(self, name, mount_point="aws"): ... def list_roles(self, mount_point="aws"): ... def delete_role(self, name, mount_point="aws"): ... def generate_credentials( - self, - name, - role_arn: Incomplete | None = None, - ttl: Incomplete | None = None, - endpoint: str = "creds", - mount_point="aws", - role_session_name: Incomplete | None = None, + self, name, role_arn=None, ttl=None, endpoint: str = "creds", mount_point="aws", role_session_name=None ): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/azure.pyi b/stubs/hvac/hvac/api/secrets_engines/azure.pyi index ba49483b2a5f..5ba4e4eac2dd 100644 --- a/stubs/hvac/hvac/api/secrets_engines/azure.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/azure.pyi @@ -1,23 +1,13 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str class Azure(VaultApiBase): def configure( - self, - subscription_id, - tenant_id, - client_id: Incomplete | None = None, - client_secret: Incomplete | None = None, - environment: Incomplete | None = None, - mount_point="azure", + self, subscription_id, tenant_id, client_id=None, client_secret=None, environment=None, mount_point="azure" ): ... def read_config(self, mount_point="azure"): ... def delete_config(self, mount_point="azure"): ... - def create_or_update_role( - self, name, azure_roles, ttl: Incomplete | None = None, max_ttl: Incomplete | None = None, mount_point="azure" - ): ... + def create_or_update_role(self, name, azure_roles, ttl=None, max_ttl=None, mount_point="azure"): ... def list_roles(self, mount_point="azure"): ... def generate_credentials(self, name, mount_point="azure"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/consul.pyi b/stubs/hvac/hvac/api/secrets_engines/consul.pyi index b51d841e7a08..0a27a6da6b70 100644 --- a/stubs/hvac/hvac/api/secrets_engines/consul.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/consul.pyi @@ -1,21 +1,11 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str class Consul(VaultApiBase): - def configure_access(self, address, token, scheme: Incomplete | None = None, mount_point="consul"): ... + def configure_access(self, address, token, scheme=None, mount_point="consul"): ... def create_or_update_role( - self, - name, - policy: Incomplete | None = None, - policies: Incomplete | None = None, - token_type: Incomplete | None = None, - local: Incomplete | None = None, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - mount_point="consul", + self, name, policy=None, policies=None, token_type=None, local=None, ttl=None, max_ttl=None, mount_point="consul" ): ... def read_role(self, name, mount_point="consul"): ... def list_roles(self, mount_point="consul"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/database.pyi b/stubs/hvac/hvac/api/secrets_engines/database.pyi index 6f016ec1eedc..ff88fe47d9e6 100644 --- a/stubs/hvac/hvac/api/secrets_engines/database.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/database.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -9,9 +7,9 @@ class Database(VaultApiBase): self, name, plugin_name, - verify_connection: Incomplete | None = None, - allowed_roles: Incomplete | None = None, - root_rotation_statements: Incomplete | None = None, + verify_connection=None, + allowed_roles=None, + root_rotation_statements=None, mount_point="database", *args, **kwargs, @@ -26,11 +24,11 @@ class Database(VaultApiBase): name, db_name, creation_statements, - default_ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - revocation_statements: Incomplete | None = None, - rollback_statements: Incomplete | None = None, - renew_statements: Incomplete | None = None, + default_ttl=None, + max_ttl=None, + revocation_statements=None, + rollback_statements=None, + renew_statements=None, mount_point="database", ): ... def create_static_role( diff --git a/stubs/hvac/hvac/api/secrets_engines/gcp.pyi b/stubs/hvac/hvac/api/secrets_engines/gcp.pyi index 0c027af5b223..8ccc89bbf6e3 100644 --- a/stubs/hvac/hvac/api/secrets_engines/gcp.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/gcp.pyi @@ -1,28 +1,12 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str class Gcp(VaultApiBase): - def configure( - self, - credentials: Incomplete | None = None, - ttl: Incomplete | None = None, - max_ttl: Incomplete | None = None, - mount_point="gcp", - ): ... + def configure(self, credentials=None, ttl=None, max_ttl=None, mount_point="gcp"): ... def rotate_root_credentials(self, mount_point="gcp"): ... def read_config(self, mount_point="gcp"): ... - def create_or_update_roleset( - self, - name, - project, - bindings, - secret_type: Incomplete | None = None, - token_scopes: Incomplete | None = None, - mount_point="gcp", - ): ... + def create_or_update_roleset(self, name, project, bindings, secret_type=None, token_scopes=None, mount_point="gcp"): ... def rotate_roleset_account(self, name, mount_point="gcp"): ... def rotate_roleset_account_key(self, name, mount_point="gcp"): ... def read_roleset(self, name, mount_point="gcp"): ... @@ -38,13 +22,7 @@ class Gcp(VaultApiBase): mount_point="gcp", ): ... def create_or_update_static_account( - self, - name, - service_account_email, - bindings: Incomplete | None = None, - secret_type: Incomplete | None = None, - token_scopes: Incomplete | None = None, - mount_point="gcp", + self, name, service_account_email, bindings=None, secret_type=None, token_scopes=None, mount_point="gcp" ): ... def rotate_static_account_key(self, name, mount_point="gcp"): ... def read_static_account(self, name, mount_point="gcp"): ... @@ -60,12 +38,7 @@ class Gcp(VaultApiBase): mount_point="gcp", ): ... def create_or_update_impersonated_account( - self, - name, - service_account_email, - token_scopes: Incomplete | None = None, - ttl: Incomplete | None = None, - mount_point="gcp", + self, name, service_account_email, token_scopes=None, ttl=None, mount_point="gcp" ): ... def read_impersonated_account(self, name, mount_point="gcp"): ... def list_impersonated_accounts(self, mount_point="gcp"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/identity.pyi b/stubs/hvac/hvac/api/secrets_engines/identity.pyi index d848c279494d..acafad3d33c9 100644 --- a/stubs/hvac/hvac/api/secrets_engines/identity.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/identity.pyi @@ -6,48 +6,22 @@ logger: Incomplete class Identity(VaultApiBase): def create_or_update_entity( - self, - name, - entity_id: Incomplete | None = None, - metadata: Incomplete | None = None, - policies: Incomplete | None = None, - disabled: Incomplete | None = None, - mount_point: str = "identity", + self, name, entity_id=None, metadata=None, policies=None, disabled=None, mount_point: str = "identity" ): ... def create_or_update_entity_by_name( - self, - name, - metadata: Incomplete | None = None, - policies: Incomplete | None = None, - disabled: Incomplete | None = None, - mount_point: str = "identity", + self, name, metadata=None, policies=None, disabled=None, mount_point: str = "identity" ): ... def read_entity(self, entity_id, mount_point: str = "identity"): ... def read_entity_by_name(self, name, mount_point: str = "identity"): ... - def update_entity( - self, - entity_id, - name: Incomplete | None = None, - metadata: Incomplete | None = None, - policies: Incomplete | None = None, - disabled: Incomplete | None = None, - mount_point: str = "identity", - ): ... + def update_entity(self, entity_id, name=None, metadata=None, policies=None, disabled=None, mount_point: str = "identity"): ... def delete_entity(self, entity_id, mount_point: str = "identity"): ... def delete_entity_by_name(self, name, mount_point: str = "identity"): ... def list_entities(self, method: str = "LIST", mount_point: str = "identity"): ... def list_entities_by_name(self, method: str = "LIST", mount_point: str = "identity"): ... def merge_entities( - self, - from_entity_ids, - to_entity_id, - force: Incomplete | None = None, - mount_point: str = "identity", - conflicting_alias_ids_to_keep: Incomplete | None = None, - ): ... - def create_or_update_entity_alias( - self, name, canonical_id, mount_accessor, alias_id: Incomplete | None = None, mount_point: str = "identity" + self, from_entity_ids, to_entity_id, force=None, mount_point: str = "identity", conflicting_alias_ids_to_keep=None ): ... + def create_or_update_entity_alias(self, name, canonical_id, mount_accessor, alias_id=None, mount_point: str = "identity"): ... def read_entity_alias(self, alias_id, mount_point: str = "identity"): ... def update_entity_alias(self, alias_id, name, canonical_id, mount_accessor, mount_point: str = "identity"): ... def list_entity_aliases(self, method: str = "LIST", mount_point: str = "identity"): ... @@ -57,12 +31,12 @@ class Identity(VaultApiBase): def create_or_update_group( self, name, - group_id: Incomplete | None = None, + group_id=None, group_type: str = "internal", - metadata: Incomplete | None = None, - policies: Incomplete | None = None, - member_group_ids: Incomplete | None = None, - member_entity_ids: Incomplete | None = None, + metadata=None, + policies=None, + member_group_ids=None, + member_entity_ids=None, mount_point: str = "identity", ): ... def read_group(self, group_id, mount_point: str = "identity"): ... @@ -71,10 +45,10 @@ class Identity(VaultApiBase): group_id, name, group_type: str = "internal", - metadata: Incomplete | None = None, - policies: Incomplete | None = None, - member_group_ids: Incomplete | None = None, - member_entity_ids: Incomplete | None = None, + metadata=None, + policies=None, + member_group_ids=None, + member_entity_ids=None, mount_point: str = "identity", ): ... def delete_group(self, group_id, mount_point: str = "identity"): ... @@ -84,59 +58,35 @@ class Identity(VaultApiBase): self, name, group_type: str = "internal", - metadata: Incomplete | None = None, - policies: Incomplete | None = None, - member_group_ids: Incomplete | None = None, - member_entity_ids: Incomplete | None = None, + metadata=None, + policies=None, + member_group_ids=None, + member_entity_ids=None, mount_point: str = "identity", ): ... def read_group_by_name(self, name, mount_point: str = "identity"): ... def delete_group_by_name(self, name, mount_point: str = "identity"): ... def create_or_update_group_alias( - self, - name, - alias_id: Incomplete | None = None, - mount_accessor: Incomplete | None = None, - canonical_id: Incomplete | None = None, - mount_point: str = "identity", - ): ... - def update_group_alias( - self, - entity_id, - name, - mount_accessor: Incomplete | None = None, - canonical_id: Incomplete | None = None, - mount_point="identity", + self, name, alias_id=None, mount_accessor=None, canonical_id=None, mount_point: str = "identity" ): ... + def update_group_alias(self, entity_id, name, mount_accessor=None, canonical_id=None, mount_point="identity"): ... def read_group_alias(self, alias_id, mount_point: str = "identity"): ... def delete_group_alias(self, entity_id, mount_point: str = "identity"): ... def list_group_aliases(self, method: str = "LIST", mount_point: str = "identity"): ... def lookup_entity( - self, - name: Incomplete | None = None, - entity_id: Incomplete | None = None, - alias_id: Incomplete | None = None, - alias_name: Incomplete | None = None, - alias_mount_accessor: Incomplete | None = None, - mount_point: str = "identity", + self, name=None, entity_id=None, alias_id=None, alias_name=None, alias_mount_accessor=None, mount_point: str = "identity" ): ... def lookup_group( - self, - name: Incomplete | None = None, - group_id: Incomplete | None = None, - alias_id: Incomplete | None = None, - alias_name: Incomplete | None = None, - alias_mount_accessor: Incomplete | None = None, - mount_point: str = "identity", + self, name=None, group_id=None, alias_id=None, alias_name=None, alias_mount_accessor=None, mount_point: str = "identity" ): ... - def configure_tokens_backend(self, issuer: Incomplete | None = None, mount_point: str = "identity"): ... + def configure_tokens_backend(self, issuer=None, mount_point: str = "identity"): ... def read_tokens_backend_configuration(self, mount_point: str = "identity"): ... def create_named_key( self, name, rotation_period: str = "24h", verification_ttl: str = "24h", - allowed_client_ids: Incomplete | None = None, + allowed_client_ids=None, algorithm: str = "RS256", mount_point: str = "identity", ): ... @@ -145,18 +95,12 @@ class Identity(VaultApiBase): def list_named_keys(self, mount_point: str = "identity"): ... def rotate_named_key(self, name, verification_ttl, mount_point: str = "identity"): ... def create_or_update_role( - self, - name, - key, - template: Incomplete | None = None, - client_id: Incomplete | None = None, - ttl: str = "24h", - mount_point: str = "identity", + self, name, key, template=None, client_id=None, ttl: str = "24h", mount_point: str = "identity" ): ... def read_role(self, name, mount_point: str = "identity"): ... def delete_role(self, name, mount_point: str = "identity"): ... def list_roles(self, mount_point: str = "identity"): ... def generate_signed_id_token(self, name, mount_point: str = "identity"): ... - def introspect_signed_id_token(self, token, client_id: Incomplete | None = None, mount_point: str = "identity"): ... + def introspect_signed_id_token(self, token, client_id=None, mount_point: str = "identity"): ... def read_well_known_configurations(self, mount_point: str = "identity"): ... def read_active_public_keys(self, mount_point: str = "identity"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/kv_v1.pyi b/stubs/hvac/hvac/api/secrets_engines/kv_v1.pyi index c64b3c75c5aa..ed8da7fdf350 100644 --- a/stubs/hvac/hvac/api/secrets_engines/kv_v1.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/kv_v1.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -7,5 +5,5 @@ DEFAULT_MOUNT_POINT: str class KvV1(VaultApiBase): def read_secret(self, path, mount_point="secret"): ... def list_secrets(self, path, mount_point="secret"): ... - def create_or_update_secret(self, path, secret, method: Incomplete | None = None, mount_point="secret"): ... + def create_or_update_secret(self, path, secret, method=None, mount_point="secret"): ... def delete_secret(self, path, mount_point="secret"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/kv_v2.pyi b/stubs/hvac/hvac/api/secrets_engines/kv_v2.pyi index 6996f136e0fb..32c6a06a8014 100644 --- a/stubs/hvac/hvac/api/secrets_engines/kv_v2.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/kv_v2.pyi @@ -1,23 +1,13 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str class KvV2(VaultApiBase): - def configure( - self, - max_versions: int = 10, - cas_required: Incomplete | None = None, - delete_version_after: str = "0s", - mount_point="secret", - ): ... + def configure(self, max_versions: int = 10, cas_required=None, delete_version_after: str = "0s", mount_point="secret"): ... def read_configuration(self, mount_point="secret"): ... - def read_secret(self, path, mount_point="secret", raise_on_deleted_version: Incomplete | None = None): ... - def read_secret_version( - self, path, version: Incomplete | None = None, mount_point="secret", raise_on_deleted_version: Incomplete | None = None - ): ... - def create_or_update_secret(self, path, secret, cas: Incomplete | None = None, mount_point="secret"): ... + def read_secret(self, path, mount_point="secret", raise_on_deleted_version=None): ... + def read_secret_version(self, path, version=None, mount_point="secret", raise_on_deleted_version=None): ... + def create_or_update_secret(self, path, secret, cas=None, mount_point="secret"): ... def patch(self, path, secret, mount_point="secret"): ... def delete_latest_version_of_secret(self, path, mount_point="secret"): ... def delete_secret_versions(self, path, versions, mount_point="secret"): ... @@ -28,10 +18,10 @@ class KvV2(VaultApiBase): def update_metadata( self, path, - max_versions: Incomplete | None = None, - cas_required: Incomplete | None = None, + max_versions=None, + cas_required=None, delete_version_after: str = "0s", mount_point="secret", - custom_metadata: Incomplete | None = None, + custom_metadata=None, ): ... def delete_metadata_and_all_versions(self, path, mount_point="secret"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/pki.pyi b/stubs/hvac/hvac/api/secrets_engines/pki.pyi index b8ee9bc1ccc5..f8ea43398709 100644 --- a/stubs/hvac/hvac/api/secrets_engines/pki.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/pki.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -11,40 +9,28 @@ class Pki(VaultApiBase): def list_certificates(self, mount_point="pki"): ... def submit_ca_information(self, pem_bundle, mount_point="pki"): ... def read_crl_configuration(self, mount_point="pki"): ... - def set_crl_configuration( - self, - expiry: Incomplete | None = None, - disable: Incomplete | None = None, - extra_params: Incomplete | None = None, - mount_point="pki", - ): ... + def set_crl_configuration(self, expiry=None, disable=None, extra_params=None, mount_point="pki"): ... def read_urls(self, mount_point="pki"): ... def set_urls(self, params, mount_point="pki"): ... def read_crl(self, mount_point="pki"): ... def rotate_crl(self, mount_point="pki"): ... - def generate_intermediate( - self, type, common_name, extra_params: Incomplete | None = None, mount_point="pki", wrap_ttl: Incomplete | None = None - ): ... + def generate_intermediate(self, type, common_name, extra_params=None, mount_point="pki", wrap_ttl=None): ... def set_signed_intermediate(self, certificate, mount_point="pki"): ... - def generate_certificate( - self, name, common_name, extra_params: Incomplete | None = None, mount_point="pki", wrap_ttl: Incomplete | None = None - ): ... + def generate_certificate(self, name, common_name, extra_params=None, mount_point="pki", wrap_ttl=None): ... def revoke_certificate(self, serial_number, mount_point="pki"): ... - def create_or_update_role(self, name, extra_params: Incomplete | None = None, mount_point="pki"): ... + def create_or_update_role(self, name, extra_params=None, mount_point="pki"): ... def read_role(self, name, mount_point="pki"): ... def list_roles(self, mount_point="pki"): ... def delete_role(self, name, mount_point="pki"): ... - def generate_root( - self, type, common_name, extra_params: Incomplete | None = None, mount_point="pki", wrap_ttl: Incomplete | None = None - ): ... + def generate_root(self, type, common_name, extra_params=None, mount_point="pki", wrap_ttl=None): ... def delete_root(self, mount_point="pki"): ... - def sign_intermediate(self, csr, common_name, extra_params: Incomplete | None = None, mount_point="pki"): ... + def sign_intermediate(self, csr, common_name, extra_params=None, mount_point="pki"): ... def sign_self_issued(self, certificate, mount_point="pki"): ... - def sign_certificate(self, name, csr, common_name, extra_params: Incomplete | None = None, mount_point="pki"): ... - def sign_verbatim(self, csr, name: bool = False, extra_params: Incomplete | None = None, mount_point="pki"): ... - def tidy(self, extra_params: Incomplete | None = None, mount_point="pki"): ... + def sign_certificate(self, name, csr, common_name, extra_params=None, mount_point="pki"): ... + def sign_verbatim(self, csr, name: bool = False, extra_params=None, mount_point="pki"): ... + def tidy(self, extra_params=None, mount_point="pki"): ... def read_issuer(self, issuer_ref, mount_point="pki"): ... def list_issuers(self, mount_point="pki"): ... - def update_issuer(self, issuer_ref, extra_params: Incomplete | None = None, mount_point="pki"): ... + def update_issuer(self, issuer_ref, extra_params=None, mount_point="pki"): ... def revoke_issuer(self, issuer_ref, mount_point="pki"): ... def delete_issuer(self, issuer_ref, mount_point="pki"): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/ssh.pyi b/stubs/hvac/hvac/api/secrets_engines/ssh.pyi index 8697ec503cba..b7b7f3d3305d 100644 --- a/stubs/hvac/hvac/api/secrets_engines/ssh.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/ssh.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -27,15 +25,15 @@ class Ssh(VaultApiBase): max_ttl: str = "", allowed_critical_options: str = "", allowed_extensions: str = "", - default_critical_options: Incomplete | None = None, - default_extensions: Incomplete | None = None, + default_critical_options=None, + default_extensions=None, allow_user_certificates: str = "", allow_host_certificates: bool = False, allow_bare_domains: bool = False, allow_subdomains: bool = False, allow_user_key_ids: bool = False, key_id_format: str = "", - allowed_user_key_lengths: Incomplete | None = None, + allowed_user_key_lengths=None, algorithm_signer: str = "", mount_point="ssh", ): ... @@ -67,7 +65,7 @@ class Ssh(VaultApiBase): valid_principals: str = "", cert_type: str = "user", key_id: str = "", - critical_options: Incomplete | None = None, - extensions: Incomplete | None = None, + critical_options=None, + extensions=None, mount_point: str = "ssh", ): ... diff --git a/stubs/hvac/hvac/api/secrets_engines/transform.pyi b/stubs/hvac/hvac/api/secrets_engines/transform.pyi index b1a89f8f9299..39aff82b3f50 100644 --- a/stubs/hvac/hvac/api/secrets_engines/transform.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/transform.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -16,32 +14,22 @@ class Transform(VaultApiBase): template, tweak_source: str = "supplied", masking_character: str = "*", - allowed_roles: Incomplete | None = None, + allowed_roles=None, mount_point: str = "transform", ): ... def create_or_update_fpe_transformation( - self, - name, - template, - tweak_source: str = "supplied", - allowed_roles: Incomplete | None = None, - mount_point: str = "transform", + self, name, template, tweak_source: str = "supplied", allowed_roles=None, mount_point: str = "transform" ): ... def create_or_update_masking_transformation( - self, - name, - template, - masking_character: str = "*", - allowed_roles: Incomplete | None = None, - mount_point: str = "transform", + self, name, template, masking_character: str = "*", allowed_roles=None, mount_point: str = "transform" ): ... def create_or_update_tokenization_transformation( self, name, max_ttl: int = 0, mapping_mode: str = "default", - allowed_roles: Incomplete | None = None, - stores: Incomplete | None = None, + allowed_roles=None, + stores=None, mount_point: str = "transform", ): ... def read_transformation(self, name, mount_point: str = "transform"): ... @@ -60,10 +48,10 @@ class Transform(VaultApiBase): name, driver, connection_string, - username: Incomplete | None = None, - password: Incomplete | None = None, + username=None, + password=None, type: str = "sql", - supported_transformations: Incomplete | None = None, + supported_transformations=None, schema: str = "public", max_open_connections: int = 4, max_idle_connections: int = 4, @@ -71,32 +59,14 @@ class Transform(VaultApiBase): mount_point: str = "transform", ): ... def encode( - self, - role_name, - value: Incomplete | None = None, - transformation: Incomplete | None = None, - tweak: Incomplete | None = None, - batch_input: Incomplete | None = None, - mount_point: str = "transform", + self, role_name, value=None, transformation=None, tweak=None, batch_input=None, mount_point: str = "transform" ): ... def decode( - self, - role_name, - value: Incomplete | None = None, - transformation: Incomplete | None = None, - tweak: Incomplete | None = None, - batch_input: Incomplete | None = None, - mount_point: str = "transform", - ): ... - def validate_token( - self, role_name, value, transformation, batch_input: Incomplete | None = None, mount_point: str = "transform" - ): ... - def check_tokenization( - self, role_name, value, transformation, batch_input: Incomplete | None = None, mount_point: str = "transform" - ): ... - def retrieve_token_metadata( - self, role_name, value, transformation, batch_input: Incomplete | None = None, mount_point: str = "transform" + self, role_name, value=None, transformation=None, tweak=None, batch_input=None, mount_point: str = "transform" ): ... + def validate_token(self, role_name, value, transformation, batch_input=None, mount_point: str = "transform"): ... + def check_tokenization(self, role_name, value, transformation, batch_input=None, mount_point: str = "transform"): ... + def retrieve_token_metadata(self, role_name, value, transformation, batch_input=None, mount_point: str = "transform"): ... def snapshot_tokenization_state(self, name, limit: int = 1000, continuation: str = "", mount_point: str = "transform"): ... def restore_tokenization_state(self, name, values, mount_point: str = "transform"): ... def export_decoded_tokenization_state( diff --git a/stubs/hvac/hvac/api/secrets_engines/transit.pyi b/stubs/hvac/hvac/api/secrets_engines/transit.pyi index 495611b0e5c0..86a2335ec4d6 100644 --- a/stubs/hvac/hvac/api/secrets_engines/transit.pyi +++ b/stubs/hvac/hvac/api/secrets_engines/transit.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT: str @@ -8,13 +6,13 @@ class Transit(VaultApiBase): def create_key( self, name, - convergent_encryption: Incomplete | None = None, - derived: Incomplete | None = None, - exportable: Incomplete | None = None, - allow_plaintext_backup: Incomplete | None = None, - key_type: Incomplete | None = None, + convergent_encryption=None, + derived=None, + exportable=None, + allow_plaintext_backup=None, + key_type=None, mount_point="transit", - auto_rotate_period: Incomplete | None = None, + auto_rotate_period=None, ): ... def read_key(self, name, mount_point="transit"): ... def list_keys(self, mount_point="transit"): ... @@ -22,95 +20,74 @@ class Transit(VaultApiBase): def update_key_configuration( self, name, - min_decryption_version: Incomplete | None = None, - min_encryption_version: Incomplete | None = None, - deletion_allowed: Incomplete | None = None, - exportable: Incomplete | None = None, - allow_plaintext_backup: Incomplete | None = None, + min_decryption_version=None, + min_encryption_version=None, + deletion_allowed=None, + exportable=None, + allow_plaintext_backup=None, mount_point="transit", - auto_rotate_period: Incomplete | None = None, + auto_rotate_period=None, ): ... def rotate_key(self, name, mount_point="transit"): ... - def export_key(self, name, key_type, version: Incomplete | None = None, mount_point="transit"): ... + def export_key(self, name, key_type, version=None, mount_point="transit"): ... def encrypt_data( self, name, - plaintext: Incomplete | None = None, - context: Incomplete | None = None, - key_version: Incomplete | None = None, - nonce: Incomplete | None = None, - batch_input: Incomplete | None = None, - type: Incomplete | None = None, - convergent_encryption: Incomplete | None = None, + plaintext=None, + context=None, + key_version=None, + nonce=None, + batch_input=None, + type=None, + convergent_encryption=None, mount_point: str = "transit", associated_data: str | None = None, ): ... def decrypt_data( self, name, - ciphertext: Incomplete | None = None, - context: Incomplete | None = None, - nonce: Incomplete | None = None, - batch_input: Incomplete | None = None, + ciphertext=None, + context=None, + nonce=None, + batch_input=None, mount_point: str = "transit", associated_data: str | None = None, ): ... def rewrap_data( - self, - name, - ciphertext, - context: Incomplete | None = None, - key_version: Incomplete | None = None, - nonce: Incomplete | None = None, - batch_input: Incomplete | None = None, - mount_point="transit", - ): ... - def generate_data_key( - self, - name, - key_type, - context: Incomplete | None = None, - nonce: Incomplete | None = None, - bits: Incomplete | None = None, - mount_point="transit", - ): ... - def generate_random_bytes( - self, n_bytes: Incomplete | None = None, output_format: Incomplete | None = None, mount_point="transit" - ): ... - def hash_data( - self, hash_input, algorithm: Incomplete | None = None, output_format: Incomplete | None = None, mount_point="transit" - ): ... - def generate_hmac( - self, name, hash_input, key_version: Incomplete | None = None, algorithm: Incomplete | None = None, mount_point="transit" + self, name, ciphertext, context=None, key_version=None, nonce=None, batch_input=None, mount_point="transit" ): ... + def generate_data_key(self, name, key_type, context=None, nonce=None, bits=None, mount_point="transit"): ... + def generate_random_bytes(self, n_bytes=None, output_format=None, mount_point="transit"): ... + def hash_data(self, hash_input, algorithm=None, output_format=None, mount_point="transit"): ... + def generate_hmac(self, name, hash_input, key_version=None, algorithm=None, mount_point="transit"): ... def sign_data( self, name, - hash_input: Incomplete | None = None, - key_version: Incomplete | None = None, - hash_algorithm: Incomplete | None = None, - context: Incomplete | None = None, - prehashed: Incomplete | None = None, - signature_algorithm: Incomplete | None = None, - marshaling_algorithm: Incomplete | None = None, - salt_length: Incomplete | None = None, + hash_input=None, + key_version=None, + hash_algorithm=None, + context=None, + prehashed=None, + signature_algorithm=None, + marshaling_algorithm=None, + salt_length=None, mount_point="transit", - batch_input: Incomplete | None = None, + batch_input=None, ): ... def verify_signed_data( self, name, hash_input, - signature: Incomplete | None = None, - hmac: Incomplete | None = None, - hash_algorithm: Incomplete | None = None, - context: Incomplete | None = None, - prehashed: Incomplete | None = None, - signature_algorithm: Incomplete | None = None, - salt_length: Incomplete | None = None, - marshaling_algorithm: Incomplete | None = None, + signature=None, + hmac=None, + hash_algorithm=None, + context=None, + prehashed=None, + signature_algorithm=None, + salt_length=None, + marshaling_algorithm=None, mount_point="transit", ): ... def backup_key(self, name, mount_point="transit"): ... - def restore_key(self, backup, name: Incomplete | None = None, force: Incomplete | None = None, mount_point="transit"): ... + def restore_key(self, backup, name=None, force=None, mount_point="transit"): ... def trim_key(self, name, min_version, mount_point="transit"): ... diff --git a/stubs/hvac/hvac/api/system_backend/audit.pyi b/stubs/hvac/hvac/api/system_backend/audit.pyi index b1e5bc0d7670..99dea810178f 100644 --- a/stubs/hvac/hvac/api/system_backend/audit.pyi +++ b/stubs/hvac/hvac/api/system_backend/audit.pyi @@ -1,16 +1,7 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Audit(SystemBackendMixin): def list_enabled_audit_devices(self): ... - def enable_audit_device( - self, - device_type, - description: Incomplete | None = None, - options: Incomplete | None = None, - path: Incomplete | None = None, - local: Incomplete | None = None, - ): ... + def enable_audit_device(self, device_type, description=None, options=None, path=None, local=None): ... def disable_audit_device(self, path): ... def calculate_hash(self, path, input_to_hash): ... diff --git a/stubs/hvac/hvac/api/system_backend/auth.pyi b/stubs/hvac/hvac/api/system_backend/auth.pyi index 70f37609fb1c..1534a1c71499 100644 --- a/stubs/hvac/hvac/api/system_backend/auth.pyi +++ b/stubs/hvac/hvac/api/system_backend/auth.pyi @@ -1,30 +1,21 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Auth(SystemBackendMixin): def list_auth_methods(self): ... def enable_auth_method( - self, - method_type, - description: Incomplete | None = None, - config: Incomplete | None = None, - plugin_name: Incomplete | None = None, - local: bool = False, - path: Incomplete | None = None, - **kwargs, + self, method_type, description=None, config=None, plugin_name=None, local: bool = False, path=None, **kwargs ): ... def disable_auth_method(self, path): ... def read_auth_method_tuning(self, path): ... def tune_auth_method( self, path, - default_lease_ttl: Incomplete | None = None, - max_lease_ttl: Incomplete | None = None, - description: Incomplete | None = None, - audit_non_hmac_request_keys: Incomplete | None = None, - audit_non_hmac_response_keys: Incomplete | None = None, - listing_visibility: Incomplete | None = None, - passthrough_request_headers: Incomplete | None = None, + default_lease_ttl=None, + max_lease_ttl=None, + description=None, + audit_non_hmac_request_keys=None, + audit_non_hmac_response_keys=None, + listing_visibility=None, + passthrough_request_headers=None, **kwargs, ): ... diff --git a/stubs/hvac/hvac/api/system_backend/capabilities.pyi b/stubs/hvac/hvac/api/system_backend/capabilities.pyi index 7dab2917eff6..398f822a5870 100644 --- a/stubs/hvac/hvac/api/system_backend/capabilities.pyi +++ b/stubs/hvac/hvac/api/system_backend/capabilities.pyi @@ -1,6 +1,4 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Capabilities(SystemBackendMixin): - def get_capabilities(self, paths, token: Incomplete | None = None, accessor: Incomplete | None = None): ... + def get_capabilities(self, paths, token=None, accessor=None): ... diff --git a/stubs/hvac/hvac/api/system_backend/health.pyi b/stubs/hvac/hvac/api/system_backend/health.pyi index 10ff1162079c..9e252742786e 100644 --- a/stubs/hvac/hvac/api/system_backend/health.pyi +++ b/stubs/hvac/hvac/api/system_backend/health.pyi @@ -1,16 +1,14 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Health(SystemBackendMixin): def read_health_status( self, - standby_ok: Incomplete | None = None, - active_code: Incomplete | None = None, - standby_code: Incomplete | None = None, - dr_secondary_code: Incomplete | None = None, - performance_standby_code: Incomplete | None = None, - sealed_code: Incomplete | None = None, - uninit_code: Incomplete | None = None, + standby_ok=None, + active_code=None, + standby_code=None, + dr_secondary_code=None, + performance_standby_code=None, + sealed_code=None, + uninit_code=None, method: str = "HEAD", ): ... diff --git a/stubs/hvac/hvac/api/system_backend/init.pyi b/stubs/hvac/hvac/api/system_backend/init.pyi index c936f9a392b1..bd96164557d3 100644 --- a/stubs/hvac/hvac/api/system_backend/init.pyi +++ b/stubs/hvac/hvac/api/system_backend/init.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Init(SystemBackendMixin): @@ -7,12 +5,12 @@ class Init(SystemBackendMixin): def is_initialized(self): ... def initialize( self, - secret_shares: Incomplete | None = None, - secret_threshold: Incomplete | None = None, - pgp_keys: Incomplete | None = None, - root_token_pgp_key: Incomplete | None = None, - stored_shares: Incomplete | None = None, - recovery_shares: Incomplete | None = None, - recovery_threshold: Incomplete | None = None, - recovery_pgp_keys: Incomplete | None = None, + secret_shares=None, + secret_threshold=None, + pgp_keys=None, + root_token_pgp_key=None, + stored_shares=None, + recovery_shares=None, + recovery_threshold=None, + recovery_pgp_keys=None, ): ... diff --git a/stubs/hvac/hvac/api/system_backend/key.pyi b/stubs/hvac/hvac/api/system_backend/key.pyi index 49897874efa7..ada0db2177f4 100644 --- a/stubs/hvac/hvac/api/system_backend/key.pyi +++ b/stubs/hvac/hvac/api/system_backend/key.pyi @@ -1,10 +1,8 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Key(SystemBackendMixin): def read_root_generation_progress(self): ... - def start_root_token_generation(self, otp: Incomplete | None = None, pgp_key: Incomplete | None = None): ... + def start_root_token_generation(self, otp=None, pgp_key=None): ... def generate_root(self, key, nonce): ... def cancel_root_generation(self): ... def get_encryption_key_status(self): ... @@ -14,14 +12,14 @@ class Key(SystemBackendMixin): self, secret_shares: int = 5, secret_threshold: int = 3, - pgp_keys: Incomplete | None = None, + pgp_keys=None, backup: bool = False, require_verification: bool = False, recovery_key: bool = False, ): ... def cancel_rekey(self, recovery_key: bool = False): ... - def rekey(self, key, nonce: Incomplete | None = None, recovery_key: bool = False): ... - def rekey_multi(self, keys, nonce: Incomplete | None = None, recovery_key: bool = False): ... + def rekey(self, key, nonce=None, recovery_key: bool = False): ... + def rekey_multi(self, keys, nonce=None, recovery_key: bool = False): ... def read_backup_keys(self, recovery_key: bool = False): ... def cancel_rekey_verify(self): ... def rekey_verify(self, key, nonce): ... diff --git a/stubs/hvac/hvac/api/system_backend/lease.pyi b/stubs/hvac/hvac/api/system_backend/lease.pyi index 817ae2a42998..9fd68b3f5f9d 100644 --- a/stubs/hvac/hvac/api/system_backend/lease.pyi +++ b/stubs/hvac/hvac/api/system_backend/lease.pyi @@ -1,11 +1,9 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Lease(SystemBackendMixin): def read_lease(self, lease_id): ... def list_leases(self, prefix): ... - def renew_lease(self, lease_id, increment: Incomplete | None = None): ... + def renew_lease(self, lease_id, increment=None): ... def revoke_lease(self, lease_id): ... def revoke_prefix(self, prefix): ... def revoke_force(self, prefix): ... diff --git a/stubs/hvac/hvac/api/system_backend/mount.pyi b/stubs/hvac/hvac/api/system_backend/mount.pyi index 729b29cf8762..54e83c1af5d7 100644 --- a/stubs/hvac/hvac/api/system_backend/mount.pyi +++ b/stubs/hvac/hvac/api/system_backend/mount.pyi @@ -1,18 +1,16 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Mount(SystemBackendMixin): def list_mounted_secrets_engines(self): ... - def retrieve_mount_option(self, mount_point, option_name, default_value: Incomplete | None = None): ... + def retrieve_mount_option(self, mount_point, option_name, default_value=None): ... def enable_secrets_engine( self, backend_type, - path: Incomplete | None = None, - description: Incomplete | None = None, - config: Incomplete | None = None, - plugin_name: Incomplete | None = None, - options: Incomplete | None = None, + path=None, + description=None, + config=None, + plugin_name=None, + options=None, local: bool = False, seal_wrap: bool = False, **kwargs, @@ -22,15 +20,15 @@ class Mount(SystemBackendMixin): def tune_mount_configuration( self, path, - default_lease_ttl: Incomplete | None = None, - max_lease_ttl: Incomplete | None = None, - description: Incomplete | None = None, - audit_non_hmac_request_keys: Incomplete | None = None, - audit_non_hmac_response_keys: Incomplete | None = None, - listing_visibility: Incomplete | None = None, - passthrough_request_headers: Incomplete | None = None, - options: Incomplete | None = None, - force_no_cache: Incomplete | None = None, + default_lease_ttl=None, + max_lease_ttl=None, + description=None, + audit_non_hmac_request_keys=None, + audit_non_hmac_response_keys=None, + listing_visibility=None, + passthrough_request_headers=None, + options=None, + force_no_cache=None, **kwargs, ): ... def move_backend(self, from_path, to_path): ... diff --git a/stubs/hvac/hvac/api/system_backend/quota.pyi b/stubs/hvac/hvac/api/system_backend/quota.pyi index a197212eebb3..15385d68a492 100644 --- a/stubs/hvac/hvac/api/system_backend/quota.pyi +++ b/stubs/hvac/hvac/api/system_backend/quota.pyi @@ -1,19 +1,9 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Quota(SystemBackendMixin): def read_quota(self, name): ... def list_quotas(self): ... def create_or_update_quota( - self, - name, - rate, - path: Incomplete | None = None, - interval: Incomplete | None = None, - block_interval: Incomplete | None = None, - role: Incomplete | None = None, - rate_limit_type: Incomplete | None = None, - inheritable: Incomplete | None = None, + self, name, rate, path=None, interval=None, block_interval=None, role=None, rate_limit_type=None, inheritable=None ): ... def delete_quota(self, name): ... diff --git a/stubs/hvac/hvac/api/system_backend/raft.pyi b/stubs/hvac/hvac/api/system_backend/raft.pyi index ebd9051d18c3..94b531a53953 100644 --- a/stubs/hvac/hvac/api/system_backend/raft.pyi +++ b/stubs/hvac/hvac/api/system_backend/raft.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin @@ -6,12 +5,7 @@ from requests import Response class Raft(SystemBackendMixin): def join_raft_cluster( - self, - leader_api_addr, - retry: bool = False, - leader_ca_cert: Incomplete | None = None, - leader_client_cert: Incomplete | None = None, - leader_client_key: Incomplete | None = None, + self, leader_api_addr, retry: bool = False, leader_ca_cert=None, leader_client_cert=None, leader_client_key=None ): ... def read_raft_config(self): ... def remove_raft_node(self, server_id): ... diff --git a/stubs/hvac/hvac/api/system_backend/seal.pyi b/stubs/hvac/hvac/api/system_backend/seal.pyi index a0eb8ea7608b..9590f989df20 100644 --- a/stubs/hvac/hvac/api/system_backend/seal.pyi +++ b/stubs/hvac/hvac/api/system_backend/seal.pyi @@ -1,10 +1,8 @@ -from _typeshed import Incomplete - from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Seal(SystemBackendMixin): def is_sealed(self): ... def read_seal_status(self): ... def seal(self): ... - def submit_unseal_key(self, key: Incomplete | None = None, reset: bool = False, migrate: bool = False): ... + def submit_unseal_key(self, key=None, reset: bool = False, migrate: bool = False): ... def submit_unseal_keys(self, keys, migrate: bool = False): ... diff --git a/stubs/hvac/hvac/api/system_backend/wrapping.pyi b/stubs/hvac/hvac/api/system_backend/wrapping.pyi index 450f9c841e3d..37a386f4250f 100644 --- a/stubs/hvac/hvac/api/system_backend/wrapping.pyi +++ b/stubs/hvac/hvac/api/system_backend/wrapping.pyi @@ -3,5 +3,5 @@ from _typeshed import Incomplete from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Wrapping(SystemBackendMixin): - def unwrap(self, token: Incomplete | None = None): ... + def unwrap(self, token=None): ... def wrap(self, payload: dict[Incomplete, Incomplete] | None = None, ttl: int = 60): ... diff --git a/stubs/jsonschema/jsonschema/exceptions.pyi b/stubs/jsonschema/jsonschema/exceptions.pyi index b92391c306c9..e65c81fad046 100644 --- a/stubs/jsonschema/jsonschema/exceptions.pyi +++ b/stubs/jsonschema/jsonschema/exceptions.pyi @@ -71,7 +71,7 @@ class UnknownType(Exception): class FormatError(Exception): message: Incomplete cause: Incomplete - def __init__(self, message, cause: Incomplete | None = None) -> None: ... + def __init__(self, message, cause=None) -> None: ... class ErrorTree: errors: MutableMapping[str, ValidationError] diff --git a/stubs/jsonschema/jsonschema/validators.pyi b/stubs/jsonschema/jsonschema/validators.pyi index a6f39402fcdc..206455c8bd32 100644 --- a/stubs/jsonschema/jsonschema/validators.pyi +++ b/stubs/jsonschema/jsonschema/validators.pyi @@ -31,11 +31,11 @@ class _Validator: def __init__( self, schema: Schema, - resolver: Incomplete | None = None, + resolver=None, format_checker: FormatChecker | None = None, *, registry: SchemaRegistry = ..., - _resolver: Incomplete | None = None, + _resolver=None, ) -> None: ... @classmethod def check_schema(cls, schema: Schema, format_checker: FormatChecker | Unset = ...) -> None: ... @@ -44,12 +44,7 @@ class _Validator: def evolve(self, **changes) -> _Validator: ... def iter_errors(self, instance, _schema: Schema | None = ...) -> Generator[Incomplete, None, None]: ... def descend( - self, - instance, - schema: Schema, - path: Incomplete | None = ..., - schema_path: Incomplete | None = ..., - resolver: Incomplete | None = None, + self, instance, schema: Schema, path: Incomplete | None = ..., schema_path: Incomplete | None = ..., resolver=None ) -> Generator[Incomplete, None, None]: ... def validate(self, *args, **kwargs) -> None: ... def is_type(self, instance, type): ... @@ -59,19 +54,13 @@ def validates(version: str) -> Callable[..., Incomplete]: ... def create( meta_schema: Schema, validators: Mapping[str, _ValidatorCallback] | tuple[()] = (), - version: Incomplete | None = None, + version=None, type_checker: TypeChecker = ..., format_checker: FormatChecker = ..., id_of: Callable[[Schema], str] = ..., applicable_validators: Callable[[Schema], Iterable[tuple[str, _ValidatorCallback]]] = ..., ) -> type[_Validator]: ... -def extend( - validator, - validators=(), - version: Incomplete | None = None, - type_checker: Incomplete | None = None, - format_checker: Incomplete | None = None, -): ... +def extend(validator, validators=(), version=None, type_checker=None, format_checker=None): ... # At runtime these are fields that are assigned the return values of create() calls. class Draft3Validator(_Validator): ... @@ -95,8 +84,8 @@ class RefResolver: store: SupportsKeysAndGetItem[str, str] | Iterable[tuple[str, str]] = ..., cache_remote: bool = True, handlers: SupportsKeysAndGetItem[str, _Handler] | Iterable[tuple[str, _Handler]] = (), - urljoin_cache: Incomplete | None = None, - remote_cache: Incomplete | None = None, + urljoin_cache=None, + remote_cache=None, ) -> None: ... @classmethod def from_schema(cls, schema: Schema, id_of=..., *args, **kwargs): ... diff --git a/stubs/jwcrypto/jwcrypto/jws.pyi b/stubs/jwcrypto/jwcrypto/jws.pyi index f5d3fab33a28..92c84ab787c7 100644 --- a/stubs/jwcrypto/jwcrypto/jws.pyi +++ b/stubs/jwcrypto/jwcrypto/jws.pyi @@ -41,18 +41,16 @@ class JWS: objects: Incomplete verifylog: list[str] | None header_registry: Incomplete - def __init__(self, payload: Incomplete | None = None, header_registry: Incomplete | None = None) -> None: ... + def __init__(self, payload=None, header_registry=None) -> None: ... @property def allowed_algs(self): ... @allowed_algs.setter def allowed_algs(self, algs) -> None: ... @property def is_valid(self): ... - def verify(self, key, alg: Incomplete | None = None, detached_payload: Incomplete | None = None) -> None: ... - def deserialize(self, raw_jws, key: Incomplete | None = None, alg: Incomplete | None = None) -> None: ... - def add_signature( - self, key, alg: Incomplete | None = None, protected: Incomplete | None = None, header: Incomplete | None = None - ) -> None: ... + def verify(self, key, alg=None, detached_payload=None) -> None: ... + def deserialize(self, raw_jws, key=None, alg=None) -> None: ... + def add_signature(self, key, alg=None, protected=None, header=None) -> None: ... def serialize(self, compact: bool = False) -> str: ... @property def payload(self): ... diff --git a/stubs/jwcrypto/jwcrypto/jwt.pyi b/stubs/jwcrypto/jwcrypto/jwt.pyi index eb3f062e2a85..bb2cce86e2f1 100644 --- a/stubs/jwcrypto/jwcrypto/jwt.pyi +++ b/stubs/jwcrypto/jwcrypto/jwt.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Mapping from typing import Any, SupportsInt from typing_extensions import deprecated @@ -37,12 +36,12 @@ class JWT: self, header: dict[str, Any] | str | None = None, claims: dict[str, Any] | str | None = None, - jwt: Incomplete | None = None, + jwt=None, key: JWK | JWKSet | None = None, - algs: Incomplete | None = None, - default_claims: Incomplete | None = None, - check_claims: Incomplete | None = None, - expected_type: Incomplete | None = None, + algs=None, + default_claims=None, + check_claims=None, + expected_type=None, ) -> None: ... @property def header(self) -> str: ... @@ -72,7 +71,7 @@ class JWT: def make_signed_token(self, key: JWK) -> None: ... def make_encrypted_token(self, key: JWK) -> None: ... def validate(self, key: JWK | JWKSet) -> None: ... - def deserialize(self, jwt, key: Incomplete | None = None) -> None: ... + def deserialize(self, jwt, key=None) -> None: ... def serialize(self, compact: bool = True) -> str: ... @classmethod def from_jose_token(cls, token): ... diff --git a/stubs/ldap3/ldap3/abstract/attrDef.pyi b/stubs/ldap3/ldap3/abstract/attrDef.pyi index d81a68f65f9a..60332975fc42 100644 --- a/stubs/ldap3/ldap3/abstract/attrDef.pyi +++ b/stubs/ldap3/ldap3/abstract/attrDef.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any class AttrDef: @@ -17,16 +16,16 @@ class AttrDef: def __init__( self, name, - key: Incomplete | None = None, - validate: Incomplete | None = None, - pre_query: Incomplete | None = None, - post_query: Incomplete | None = None, + key=None, + validate=None, + pre_query=None, + post_query=None, default=..., - dereference_dn: Incomplete | None = None, - description: Incomplete | None = None, + dereference_dn=None, + description=None, mandatory: bool = False, - single_value: Incomplete | None = None, - alias: Incomplete | None = None, + single_value=None, + alias=None, ) -> None: ... def __eq__(self, other): ... def __lt__(self, other): ... diff --git a/stubs/ldap3/ldap3/abstract/cursor.pyi b/stubs/ldap3/ldap3/abstract/cursor.pyi index 862475b51ab8..73c1eb2db8c1 100644 --- a/stubs/ldap3/ldap3/abstract/cursor.pyi +++ b/stubs/ldap3/ldap3/abstract/cursor.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, NamedTuple class Operation(NamedTuple): @@ -20,9 +19,9 @@ class Cursor: connection, object_def, get_operational_attributes: bool = False, - attributes: Incomplete | None = None, - controls: Incomplete | None = None, - auxiliary_class: Incomplete | None = None, + attributes=None, + controls=None, + auxiliary_class=None, ) -> None: ... def __iter__(self): ... def __getitem__(self, item): ... @@ -56,9 +55,9 @@ class Reader(Cursor): components_in_and: bool = True, sub_tree: bool = True, get_operational_attributes: bool = False, - attributes: Incomplete | None = None, - controls: Incomplete | None = None, - auxiliary_class: Incomplete | None = None, + attributes=None, + controls=None, + auxiliary_class=None, ) -> None: ... @property def query(self): ... @@ -72,36 +71,29 @@ class Reader(Cursor): execution_time: Any entries: Any def reset(self) -> None: ... - def search(self, attributes: Incomplete | None = None): ... - def search_object(self, entry_dn: Incomplete | None = None, attributes: Incomplete | None = None): ... - def search_level(self, attributes: Incomplete | None = None): ... - def search_subtree(self, attributes: Incomplete | None = None): ... - def search_paged( - self, paged_size, paged_criticality: bool = True, generator: bool = True, attributes: Incomplete | None = None - ): ... + def search(self, attributes=None): ... + def search_object(self, entry_dn=None, attributes=None): ... + def search_level(self, attributes=None): ... + def search_subtree(self, attributes=None): ... + def search_paged(self, paged_size, paged_criticality: bool = True, generator: bool = True, attributes=None): ... class Writer(Cursor): entry_class: Any attribute_class: Any entry_initial_status: Any @staticmethod - def from_cursor( - cursor, - connection: Incomplete | None = None, - object_def: Incomplete | None = None, - custom_validator: Incomplete | None = None, - ): ... + def from_cursor(cursor, connection=None, object_def=None, custom_validator=None): ... @staticmethod - def from_response(connection, object_def, response: Incomplete | None = None): ... + def from_response(connection, object_def, response=None): ... dereference_aliases: Any def __init__( self, connection, object_def, get_operational_attributes: bool = False, - attributes: Incomplete | None = None, - controls: Incomplete | None = None, - auxiliary_class: Incomplete | None = None, + attributes=None, + controls=None, + auxiliary_class=None, ) -> None: ... execution_time: Any def commit(self, refresh: bool = True): ... diff --git a/stubs/ldap3/ldap3/abstract/entry.pyi b/stubs/ldap3/ldap3/abstract/entry.pyi index ffc55feeb35b..2c16d59fb8ec 100644 --- a/stubs/ldap3/ldap3/abstract/entry.pyi +++ b/stubs/ldap3/ldap3/abstract/entry.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any class EntryState: @@ -50,26 +49,15 @@ class EntryBase: raw: bool = False, indent: int = 4, sort: bool = True, - stream: Incomplete | None = None, + stream=None, checked_attributes: bool = True, include_empty: bool = True, ): ... - def entry_to_ldif( - self, - all_base64: bool = False, - line_separator: Incomplete | None = None, - sort_order: Incomplete | None = None, - stream: Incomplete | None = None, - ): ... + def entry_to_ldif(self, all_base64: bool = False, line_separator=None, sort_order=None, stream=None): ... class Entry(EntryBase): def entry_writable( - self, - object_def: Incomplete | None = None, - writer_cursor: Incomplete | None = None, - attributes: Incomplete | None = None, - custom_validator: Incomplete | None = None, - auxiliary_class: Incomplete | None = None, + self, object_def=None, writer_cursor=None, attributes=None, custom_validator=None, auxiliary_class=None ): ... class WritableEntry(EntryBase): @@ -78,7 +66,7 @@ class WritableEntry(EntryBase): def __getattr__(self, item: str): ... @property def entry_virtual_attributes(self): ... - def entry_commit_changes(self, refresh: bool = True, controls: Incomplete | None = None, clear_history: bool = True): ... + def entry_commit_changes(self, refresh: bool = True, controls=None, clear_history: bool = True): ... def entry_discard_changes(self) -> None: ... def entry_delete(self) -> None: ... def entry_refresh(self, tries: int = 4, seconds: int = 2): ... diff --git a/stubs/ldap3/ldap3/abstract/objectDef.pyi b/stubs/ldap3/ldap3/abstract/objectDef.pyi index 8f3b42799f30..4aaefa21448b 100644 --- a/stubs/ldap3/ldap3/abstract/objectDef.pyi +++ b/stubs/ldap3/ldap3/abstract/objectDef.pyi @@ -1,13 +1,5 @@ -from _typeshed import Incomplete - class ObjectDef: - def __init__( - self, - object_class: Incomplete | None = None, - schema: Incomplete | None = None, - custom_validator: Incomplete | None = None, - auxiliary_class: Incomplete | None = None, - ) -> None: ... + def __init__(self, object_class=None, schema=None, custom_validator=None, auxiliary_class=None) -> None: ... def __getitem__(self, item): ... def __getattr__(self, item: str): ... def __setattr__(self, key: str, value) -> None: ... @@ -18,6 +10,6 @@ class ObjectDef: def __bool__(self) -> bool: ... def __contains__(self, item): ... def add_from_schema(self, attribute_name, mandatory: bool = False) -> None: ... - def add_attribute(self, definition: Incomplete | None = None) -> None: ... + def add_attribute(self, definition=None) -> None: ... def remove_attribute(self, item) -> None: ... def clear_attributes(self) -> None: ... diff --git a/stubs/ldap3/ldap3/core/connection.pyi b/stubs/ldap3/ldap3/core/connection.pyi index b961f60cd632..47df86aa6ad8 100644 --- a/stubs/ldap3/ldap3/core/connection.pyi +++ b/stubs/ldap3/ldap3/core/connection.pyi @@ -88,7 +88,7 @@ class Connection: auto_referrals: bool = True, auto_range: bool = True, sasl_mechanism: str | None = None, - sasl_credentials: Incomplete | None = None, + sasl_credentials=None, check_names: bool = True, collect_usage: bool = False, read_only: bool = False, @@ -97,17 +97,17 @@ class Connection: pool_name: str | None = None, pool_size: int | None = None, pool_lifetime: int | None = None, - cred_store: Incomplete | None = None, + cred_store=None, fast_decoder: bool = True, - receive_timeout: Incomplete | None = None, + receive_timeout=None, return_empty_attributes: bool = True, use_referral_cache: bool = False, auto_escape: bool = True, auto_encode: bool = True, - pool_keepalive: Incomplete | None = None, + pool_keepalive=None, source_address: str | None = None, source_port: int | None = None, - source_port_list: Incomplete | None = None, + source_port_list=None, ) -> None: ... def repr_with_sensitive_data_stripped(self): ... @property @@ -120,76 +120,58 @@ class Connection: def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None ) -> Literal[False] | None: ... - def bind(self, read_server_info: bool = True, controls: Incomplete | None = None): ... + def bind(self, read_server_info: bool = True, controls=None): ... def rebind( self, - user: Incomplete | None = None, - password: Incomplete | None = None, - authentication: Incomplete | None = None, - sasl_mechanism: Incomplete | None = None, - sasl_credentials: Incomplete | None = None, + user=None, + password=None, + authentication=None, + sasl_mechanism=None, + sasl_credentials=None, read_server_info: bool = True, - controls: Incomplete | None = None, + controls=None, ): ... - def unbind(self, controls: Incomplete | None = None): ... + def unbind(self, controls=None): ... def search( self, search_base: str, search_filter: str, search_scope: Literal["BASE", "LEVEL", "SUBTREE"] = "SUBTREE", dereference_aliases: Literal["NEVER", "SEARCH", "FINDING_BASE", "ALWAYS"] = "ALWAYS", - attributes: Incomplete | None = None, + attributes=None, size_limit: int = 0, time_limit: int = 0, types_only: bool = False, get_operational_attributes: bool = False, - controls: Incomplete | None = None, + controls=None, paged_size: int | None = None, paged_criticality: bool = False, paged_cookie: str | bytes | None = None, auto_escape: bool | None = None, ): ... - def compare(self, dn, attribute, value, controls: Incomplete | None = None): ... - def add( - self, dn, object_class: Incomplete | None = None, attributes: Incomplete | None = None, controls: Incomplete | None = None - ): ... - def delete(self, dn, controls: Incomplete | None = None): ... - def modify(self, dn, changes, controls: Incomplete | None = None): ... - def modify_dn( - self, - dn, - relative_dn, - delete_old_dn: bool = True, - new_superior: Incomplete | None = None, - controls: Incomplete | None = None, - ): ... - def abandon(self, message_id, controls: Incomplete | None = None): ... + def compare(self, dn, attribute, value, controls=None): ... + def add(self, dn, object_class=None, attributes=None, controls=None): ... + def delete(self, dn, controls=None): ... + def modify(self, dn, changes, controls=None): ... + def modify_dn(self, dn, relative_dn, delete_old_dn: bool = True, new_superior=None, controls=None): ... + def abandon(self, message_id, controls=None): ... def extended( - self, - request_name, - request_value: Asn1Item | ReadableBuffer | None = None, - controls: Incomplete | None = None, - no_encode: bool | None = None, + self, request_name, request_value: Asn1Item | ReadableBuffer | None = None, controls=None, no_encode: bool | None = None ): ... def start_tls(self, read_server_info: bool = True): ... def do_sasl_bind(self, controls): ... def do_ntlm_bind(self, controls): ... def refresh_server_info(self) -> None: ... def response_to_ldif( - self, - search_result: Incomplete | None = None, - all_base64: bool = False, - line_separator: Incomplete | None = None, - sort_order: Incomplete | None = None, - stream: Incomplete | None = None, + self, search_result=None, all_base64: bool = False, line_separator=None, sort_order=None, stream=None ): ... def response_to_json( self, raw: bool = False, - search_result: Incomplete | None = None, + search_result=None, indent: int = 4, sort: bool = True, - stream: Incomplete | None = None, + stream=None, checked_attributes: bool = True, include_empty: bool = True, ): ... diff --git a/stubs/ldap3/ldap3/core/exceptions.pyi b/stubs/ldap3/ldap3/core/exceptions.pyi index 4fe7cfc3014e..518ad6b18378 100644 --- a/stubs/ldap3/ldap3/core/exceptions.pyi +++ b/stubs/ldap3/ldap3/core/exceptions.pyi @@ -1,35 +1,18 @@ import socket -from _typeshed import Incomplete from typing import Any from typing_extensions import Self class LDAPException(Exception): ... class LDAPOperationResult(LDAPException): - def __new__( - cls, - result: Incomplete | None = None, - description: Incomplete | None = None, - dn: Incomplete | None = None, - message: Incomplete | None = None, - response_type: Incomplete | None = None, - response: Incomplete | None = None, - ) -> Self: ... + def __new__(cls, result=None, description=None, dn=None, message=None, response_type=None, response=None) -> Self: ... result: Any description: Any dn: Any message: Any type: Any response: Any - def __init__( - self, - result: Incomplete | None = None, - description: Incomplete | None = None, - dn: Incomplete | None = None, - message: Incomplete | None = None, - response_type: Incomplete | None = None, - response: Incomplete | None = None, - ) -> None: ... + def __init__(self, result=None, description=None, dn=None, message=None, response_type=None, response=None) -> None: ... class LDAPOperationsErrorResult(LDAPOperationResult): ... class LDAPProtocolErrorResult(LDAPOperationResult): ... diff --git a/stubs/ldap3/ldap3/core/pooling.pyi b/stubs/ldap3/ldap3/core/pooling.pyi index d178b0e7c3db..c35ddcad8006 100644 --- a/stubs/ldap3/ldap3/core/pooling.pyi +++ b/stubs/ldap3/ldap3/core/pooling.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any POOLING_STRATEGIES: Any @@ -31,12 +30,7 @@ class ServerPool: single: Any strategy: Any def __init__( - self, - servers: Incomplete | None = None, - pool_strategy="ROUND_ROBIN", - active: bool = True, - exhaust: bool = False, - single_state: bool = True, + self, servers=None, pool_strategy="ROUND_ROBIN", active: bool = True, exhaust: bool = False, single_state: bool = True ) -> None: ... def __len__(self) -> int: ... def __getitem__(self, item): ... diff --git a/stubs/ldap3/ldap3/core/server.pyi b/stubs/ldap3/ldap3/core/server.pyi index c56c6a4ff05d..d86112148ab3 100644 --- a/stubs/ldap3/ldap3/core/server.pyi +++ b/stubs/ldap3/ldap3/core/server.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, Literal unix_socket_available: bool @@ -23,43 +22,30 @@ class Server: host: str, port: int | None = None, use_ssl: bool = False, - allowed_referral_hosts: Incomplete | None = None, + allowed_referral_hosts=None, get_info: Literal["NO_INFO", "DSA", "SCHEMA", "ALL"] = "SCHEMA", - tls: Incomplete | None = None, - formatter: Incomplete | None = None, - connect_timeout: Incomplete | None = None, + tls=None, + formatter=None, + connect_timeout=None, mode: Literal["IP_SYSTEM_DEFAULT", "IP_V4_ONLY", "IP_V6_ONLY", "IP_V4_PREFERRED", "IP_V6_PREFERRED"] = "IP_V6_PREFERRED", - validator: Incomplete | None = None, + validator=None, ) -> None: ... @property def address_info(self): ... def update_availability(self, address, available) -> None: ... def reset_availability(self) -> None: ... - def check_availability( - self, - source_address: Incomplete | None = None, - source_port: Incomplete | None = None, - source_port_list: Incomplete | None = None, - ): ... + def check_availability(self, source_address=None, source_port=None, source_port_list=None): ... @staticmethod def next_message_id(): ... def get_info_from_server(self, connection) -> None: ... - def attach_dsa_info(self, dsa_info: Incomplete | None = None) -> None: ... - def attach_schema_info(self, dsa_schema: Incomplete | None = None) -> None: ... + def attach_dsa_info(self, dsa_info=None) -> None: ... + def attach_schema_info(self, dsa_schema=None) -> None: ... @property def info(self): ... @property def schema(self): ... @staticmethod - def from_definition( - host, - dsa_info, - dsa_schema, - port: Incomplete | None = None, - use_ssl: bool = False, - formatter: Incomplete | None = None, - validator: Incomplete | None = None, - ): ... + def from_definition(host, dsa_info, dsa_schema, port=None, use_ssl: bool = False, formatter=None, validator=None): ... def candidate_addresses(self): ... def has_control(self, control): ... def has_extension(self, extension): ... diff --git a/stubs/ldap3/ldap3/core/tls.pyi b/stubs/ldap3/ldap3/core/tls.pyi index 11184b4fcfbc..87d423da05d5 100644 --- a/stubs/ldap3/ldap3/core/tls.pyi +++ b/stubs/ldap3/ldap3/core/tls.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any use_ssl_context: bool @@ -18,18 +17,18 @@ class Tls: sni: Any def __init__( self, - local_private_key_file: Incomplete | None = None, - local_certificate_file: Incomplete | None = None, + local_private_key_file=None, + local_certificate_file=None, validate=..., - version: Incomplete | None = None, - ssl_options: Incomplete | None = None, - ca_certs_file: Incomplete | None = None, - valid_names: Incomplete | None = None, - ca_certs_path: Incomplete | None = None, - ca_certs_data: Incomplete | None = None, - local_private_key_password: Incomplete | None = None, - ciphers: Incomplete | None = None, - sni: Incomplete | None = None, + version=None, + ssl_options=None, + ca_certs_file=None, + valid_names=None, + ca_certs_path=None, + ca_certs_data=None, + local_private_key_password=None, + ciphers=None, + sni=None, ) -> None: ... def wrap_socket(self, connection, do_handshake: bool = False) -> None: ... def start_tls(self, connection): ... diff --git a/stubs/ldap3/ldap3/extend/__init__.pyi b/stubs/ldap3/ldap3/extend/__init__.pyi index 72ae2d21aecc..90d3746d5ac5 100644 --- a/stubs/ldap3/ldap3/extend/__init__.pyi +++ b/stubs/ldap3/ldap3/extend/__init__.pyi @@ -1,32 +1,23 @@ -from _typeshed import Incomplete from typing import Any class ExtendedOperationContainer: def __init__(self, connection) -> None: ... class StandardExtendedOperations(ExtendedOperationContainer): - def who_am_i(self, controls: Incomplete | None = None): ... - def modify_password( - self, - user: Incomplete | None = None, - old_password: Incomplete | None = None, - new_password: Incomplete | None = None, - hash_algorithm: Incomplete | None = None, - salt: Incomplete | None = None, - controls: Incomplete | None = None, - ): ... + def who_am_i(self, controls=None): ... + def modify_password(self, user=None, old_password=None, new_password=None, hash_algorithm=None, salt=None, controls=None): ... def paged_search( self, search_base, search_filter, search_scope="SUBTREE", dereference_aliases="ALWAYS", - attributes: Incomplete | None = None, + attributes=None, size_limit: int = 0, time_limit: int = 0, types_only: bool = False, get_operational_attributes: bool = False, - controls: Incomplete | None = None, + controls=None, paged_size: int = 100, paged_criticality: bool = False, generator: bool = True, @@ -40,7 +31,7 @@ class StandardExtendedOperations(ExtendedOperationContainer): attributes="*", size_limit: int = 0, time_limit: int = 0, - controls: Incomplete | None = None, + controls=None, changes_only: bool = True, show_additions: bool = True, show_deletions: bool = True, @@ -48,7 +39,7 @@ class StandardExtendedOperations(ExtendedOperationContainer): show_dn_modifications: bool = True, notifications: bool = True, streaming: bool = True, - callback: Incomplete | None = None, + callback=None, ): ... def funnel_search( self, @@ -59,20 +50,20 @@ class StandardExtendedOperations(ExtendedOperationContainer): attributes="*", size_limit: int = 0, time_limit: int = 0, - controls: Incomplete | None = None, + controls=None, streaming: bool = False, - callback: Incomplete | None = None, + callback=None, ): ... class NovellExtendedOperations(ExtendedOperationContainer): - def get_bind_dn(self, controls: Incomplete | None = None): ... - def get_universal_password(self, user, controls: Incomplete | None = None): ... - def set_universal_password(self, user, new_password: Incomplete | None = None, controls: Incomplete | None = None): ... - def list_replicas(self, server_dn, controls: Incomplete | None = None): ... - def partition_entry_count(self, partition_dn, controls: Incomplete | None = None): ... - def replica_info(self, server_dn, partition_dn, controls: Incomplete | None = None): ... - def start_transaction(self, controls: Incomplete | None = None): ... - def end_transaction(self, commit: bool = True, controls: Incomplete | None = None): ... + def get_bind_dn(self, controls=None): ... + def get_universal_password(self, user, controls=None): ... + def set_universal_password(self, user, new_password=None, controls=None): ... + def list_replicas(self, server_dn, controls=None): ... + def partition_entry_count(self, partition_dn, controls=None): ... + def replica_info(self, server_dn, partition_dn, controls=None): ... + def start_transaction(self, controls=None): ... + def end_transaction(self, commit: bool = True, controls=None): ... def add_members_to_groups(self, members, groups, fix: bool = True, transaction: bool = True): ... def remove_members_from_groups(self, members, groups, fix: bool = True, transaction: bool = True): ... def check_groups_memberships(self, members, groups, fix: bool = False, transaction: bool = True): ... @@ -83,7 +74,7 @@ class MicrosoftExtendedOperations(ExtendedOperationContainer): sync_base, sync_filter: str = "(objectclass=*)", attributes="*", - cookie: Incomplete | None = None, + cookie=None, object_security: bool = False, ancestors_first: bool = True, public_data_only: bool = False, @@ -91,17 +82,12 @@ class MicrosoftExtendedOperations(ExtendedOperationContainer): max_length: int = 2147483647, hex_guid: bool = False, ): ... - def modify_password(self, user, new_password, old_password: Incomplete | None = None, controls: Incomplete | None = None): ... + def modify_password(self, user, new_password, old_password=None, controls=None): ... def unlock_account(self, user): ... def add_members_to_groups(self, members, groups, fix: bool = True): ... def remove_members_from_groups(self, members, groups, fix: bool = True): ... def persistent_search( - self, - search_base: str = "", - search_scope="SUBTREE", - attributes="*", - streaming: bool = True, - callback: Incomplete | None = None, + self, search_base: str = "", search_scope="SUBTREE", attributes="*", streaming: bool = True, callback=None ): ... class ExtendedOperationsRoot(ExtendedOperationContainer): diff --git a/stubs/ldap3/ldap3/extend/microsoft/modifyPassword.pyi b/stubs/ldap3/ldap3/extend/microsoft/modifyPassword.pyi index 598d74963aa1..6ee9b965f9d2 100644 --- a/stubs/ldap3/ldap3/extend/microsoft/modifyPassword.pyi +++ b/stubs/ldap3/ldap3/extend/microsoft/modifyPassword.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def ad_modify_password(connection, user_dn, new_password, old_password, controls: Incomplete | None = None): ... +def ad_modify_password(connection, user_dn, new_password, old_password, controls=None): ... diff --git a/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi b/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi index 64164d437780..2e8818c7e1cb 100644 --- a/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi +++ b/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any class ADPersistentSearch: @@ -12,5 +11,5 @@ class ADPersistentSearch: def __init__(self, connection, search_base, search_scope, attributes, streaming, callback) -> None: ... def start(self) -> None: ... def stop(self, unbind: bool = True) -> None: ... - def next(self, block: bool = False, timeout: Incomplete | None = None): ... - def funnel(self, block: bool = False, timeout: Incomplete | None = None) -> None: ... + def next(self, block: bool = False, timeout=None): ... + def funnel(self, block: bool = False, timeout=None) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/microsoft/unlockAccount.pyi b/stubs/ldap3/ldap3/extend/microsoft/unlockAccount.pyi index b43e43e79c1e..dd96df4b40a5 100644 --- a/stubs/ldap3/ldap3/extend/microsoft/unlockAccount.pyi +++ b/stubs/ldap3/ldap3/extend/microsoft/unlockAccount.pyi @@ -1,3 +1 @@ -from _typeshed import Incomplete - -def ad_unlock_account(connection, user_dn, controls: Incomplete | None = None): ... +def ad_unlock_account(connection, user_dn, controls=None): ... diff --git a/stubs/ldap3/ldap3/extend/novell/endTransaction.pyi b/stubs/ldap3/ldap3/extend/novell/endTransaction.pyi index d54945837bfc..d771f87e9fc1 100644 --- a/stubs/ldap3/ldap3/extend/novell/endTransaction.pyi +++ b/stubs/ldap3/ldap3/extend/novell/endTransaction.pyi @@ -9,7 +9,7 @@ class EndTransaction(ExtendedOperation): request_value: EndGroupTypeRequestValue asn1_spec: EndGroupTypeResponseValue def config(self) -> None: ... - def __init__(self, connection, commit: bool = True, controls: Incomplete | None = None) -> None: ... + def __init__(self, connection, commit: bool = True, controls=None) -> None: ... def populate_result(self) -> None: ... response_value: Incomplete def set_response(self) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/novell/listReplicas.pyi b/stubs/ldap3/ldap3/extend/novell/listReplicas.pyi index ce21c7f5cdd4..414761713115 100644 --- a/stubs/ldap3/ldap3/extend/novell/listReplicas.pyi +++ b/stubs/ldap3/ldap3/extend/novell/listReplicas.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from ...extend.operation import ExtendedOperation from ...protocol.novell import ReplicaList from ...protocol.rfc4511 import LDAPDN @@ -11,5 +9,5 @@ class ListReplicas(ExtendedOperation): asn1_spec: ReplicaList response_attribute: str def config(self) -> None: ... - def __init__(self, connection, server_dn, controls: Incomplete | None = None) -> None: ... + def __init__(self, connection, server_dn, controls=None) -> None: ... def populate_result(self) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/novell/nmasGetUniversalPassword.pyi b/stubs/ldap3/ldap3/extend/novell/nmasGetUniversalPassword.pyi index 1209787536db..f18b0ab3ac64 100644 --- a/stubs/ldap3/ldap3/extend/novell/nmasGetUniversalPassword.pyi +++ b/stubs/ldap3/ldap3/extend/novell/nmasGetUniversalPassword.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from ...extend.operation import ExtendedOperation from ...protocol.novell import NmasGetUniversalPasswordRequestValue, NmasGetUniversalPasswordResponseValue @@ -10,5 +8,5 @@ class NmasGetUniversalPassword(ExtendedOperation): asn1_spec: NmasGetUniversalPasswordResponseValue response_attribute: str def config(self) -> None: ... - def __init__(self, connection, user, controls: Incomplete | None = None) -> None: ... + def __init__(self, connection, user, controls=None) -> None: ... def populate_result(self) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/novell/nmasSetUniversalPassword.pyi b/stubs/ldap3/ldap3/extend/novell/nmasSetUniversalPassword.pyi index f62ae3c0b05c..762b20e7e2b5 100644 --- a/stubs/ldap3/ldap3/extend/novell/nmasSetUniversalPassword.pyi +++ b/stubs/ldap3/ldap3/extend/novell/nmasSetUniversalPassword.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from ...extend.operation import ExtendedOperation from ...protocol.novell import NmasSetUniversalPasswordRequestValue, NmasSetUniversalPasswordResponseValue @@ -10,5 +8,5 @@ class NmasSetUniversalPassword(ExtendedOperation): asn1_spec: NmasSetUniversalPasswordResponseValue response_attribute: str def config(self) -> None: ... - def __init__(self, connection, user, new_password, controls: Incomplete | None = None) -> None: ... + def __init__(self, connection, user, new_password, controls=None) -> None: ... def populate_result(self) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/novell/partition_entry_count.pyi b/stubs/ldap3/ldap3/extend/novell/partition_entry_count.pyi index e9ac9535238d..3231221f71ab 100644 --- a/stubs/ldap3/ldap3/extend/novell/partition_entry_count.pyi +++ b/stubs/ldap3/ldap3/extend/novell/partition_entry_count.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from ...protocol.rfc4511 import LDAPDN from ..operation import ExtendedOperation @@ -9,5 +7,5 @@ class PartitionEntryCount(ExtendedOperation): request_value: LDAPDN response_attribute: str def config(self) -> None: ... - def __init__(self, connection, partition_dn, controls: Incomplete | None = None) -> None: ... + def __init__(self, connection, partition_dn, controls=None) -> None: ... def populate_result(self) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/novell/replicaInfo.pyi b/stubs/ldap3/ldap3/extend/novell/replicaInfo.pyi index e690c60a9d59..5bc47e022a2a 100644 --- a/stubs/ldap3/ldap3/extend/novell/replicaInfo.pyi +++ b/stubs/ldap3/ldap3/extend/novell/replicaInfo.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from ...protocol.novell import ReplicaInfoRequestValue from ..operation import ExtendedOperation @@ -9,5 +7,5 @@ class ReplicaInfo(ExtendedOperation): request_value: ReplicaInfoRequestValue response_attribute: str def config(self) -> None: ... - def __init__(self, connection, server_dn, partition_dn, controls: Incomplete | None = None) -> None: ... + def __init__(self, connection, server_dn, partition_dn, controls=None) -> None: ... def populate_result(self) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/novell/startTransaction.pyi b/stubs/ldap3/ldap3/extend/novell/startTransaction.pyi index 3fa7312a2cbc..f5225664e7c3 100644 --- a/stubs/ldap3/ldap3/extend/novell/startTransaction.pyi +++ b/stubs/ldap3/ldap3/extend/novell/startTransaction.pyi @@ -9,7 +9,7 @@ class StartTransaction(ExtendedOperation): request_value: CreateGroupTypeRequestValue asn1_spec: CreateGroupTypeResponseValue def config(self) -> None: ... - def __init__(self, connection, controls: Incomplete | None = None) -> None: ... + def __init__(self, connection, controls=None) -> None: ... def populate_result(self) -> None: ... response_value: Incomplete def set_response(self) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/operation.pyi b/stubs/ldap3/ldap3/extend/operation.pyi index 878cdfa36b1e..614f5c9842c7 100644 --- a/stubs/ldap3/ldap3/extend/operation.pyi +++ b/stubs/ldap3/ldap3/extend/operation.pyi @@ -13,9 +13,9 @@ class ExtendedOperation: response_value: Incomplete | None response_attribute: Incomplete | None controls: Incomplete - def __init__(self, connection, controls: Incomplete | None = None) -> None: ... + def __init__(self, connection, controls=None) -> None: ... def send(self): ... def populate_result(self) -> None: ... - def decode_response(self, response: Incomplete | None = None) -> None: ... + def decode_response(self, response=None) -> None: ... def set_response(self) -> None: ... def config(self) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/standard/PagedSearch.pyi b/stubs/ldap3/ldap3/extend/standard/PagedSearch.pyi index 22d0a22f403c..d651eff6afda 100644 --- a/stubs/ldap3/ldap3/extend/standard/PagedSearch.pyi +++ b/stubs/ldap3/ldap3/extend/standard/PagedSearch.pyi @@ -1,17 +1,15 @@ -from _typeshed import Incomplete - def paged_search_generator( connection, search_base, search_filter, search_scope="SUBTREE", dereference_aliases="ALWAYS", - attributes: Incomplete | None = None, + attributes=None, size_limit: int = 0, time_limit: int = 0, types_only: bool = False, get_operational_attributes: bool = False, - controls: Incomplete | None = None, + controls=None, paged_size: int = 100, paged_criticality: bool = False, ) -> None: ... @@ -21,12 +19,12 @@ def paged_search_accumulator( search_filter, search_scope="SUBTREE", dereference_aliases="ALWAYS", - attributes: Incomplete | None = None, + attributes=None, size_limit: int = 0, time_limit: int = 0, types_only: bool = False, get_operational_attributes: bool = False, - controls: Incomplete | None = None, + controls=None, paged_size: int = 100, paged_criticality: bool = False, ): ... diff --git a/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi b/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi index 0b85f988dfd7..4ed285367246 100644 --- a/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi +++ b/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any class PersistentSearch: @@ -33,5 +32,5 @@ class PersistentSearch: ) -> None: ... def start(self) -> None: ... def stop(self, unbind: bool = True) -> None: ... - def next(self, block: bool = False, timeout: Incomplete | None = None): ... - def funnel(self, block: bool = False, timeout: Incomplete | None = None) -> None: ... + def next(self, block: bool = False, timeout=None): ... + def funnel(self, block: bool = False, timeout=None) -> None: ... diff --git a/stubs/ldap3/ldap3/extend/standard/modifyPassword.pyi b/stubs/ldap3/ldap3/extend/standard/modifyPassword.pyi index b609123ab966..1cd8156be3e8 100644 --- a/stubs/ldap3/ldap3/extend/standard/modifyPassword.pyi +++ b/stubs/ldap3/ldap3/extend/standard/modifyPassword.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - from ...extend.operation import ExtendedOperation from ...protocol.rfc3062 import PasswdModifyRequestValue, PasswdModifyResponseValue @@ -10,13 +8,6 @@ class ModifyPassword(ExtendedOperation): response_attribute: str def config(self) -> None: ... def __init__( - self, - connection, - user: Incomplete | None = None, - old_password: Incomplete | None = None, - new_password: Incomplete | None = None, - hash_algorithm: Incomplete | None = None, - salt: Incomplete | None = None, - controls: Incomplete | None = None, + self, connection, user=None, old_password=None, new_password=None, hash_algorithm=None, salt=None, controls=None ) -> None: ... def populate_result(self) -> None: ... diff --git a/stubs/ldap3/ldap3/operation/add.pyi b/stubs/ldap3/ldap3/operation/add.pyi index 2d10f9e12b4a..777b0e3c2f5f 100644 --- a/stubs/ldap3/ldap3/operation/add.pyi +++ b/stubs/ldap3/ldap3/operation/add.pyi @@ -1,7 +1,3 @@ -from _typeshed import Incomplete - -def add_operation( - dn, attributes, auto_encode, schema: Incomplete | None = None, validator: Incomplete | None = None, check_names: bool = False -): ... +def add_operation(dn, attributes, auto_encode, schema=None, validator=None, check_names: bool = False): ... def add_request_to_dict(request): ... def add_response_to_dict(response): ... diff --git a/stubs/ldap3/ldap3/operation/bind.pyi b/stubs/ldap3/ldap3/operation/bind.pyi index 3c2473d9eb51..9d8f99c13ecd 100644 --- a/stubs/ldap3/ldap3/operation/bind.pyi +++ b/stubs/ldap3/ldap3/operation/bind.pyi @@ -1,21 +1,9 @@ -from _typeshed import Incomplete - def bind_operation( - version, - authentication, - name: str = "", - password: Incomplete | None = None, - sasl_mechanism: Incomplete | None = None, - sasl_credentials: Incomplete | None = None, - auto_encode: bool = False, + version, authentication, name: str = "", password=None, sasl_mechanism=None, sasl_credentials=None, auto_encode: bool = False ): ... def bind_request_to_dict(request): ... def bind_response_operation( - result_code, - matched_dn: str = "", - diagnostic_message: str = "", - referral: Incomplete | None = None, - server_sasl_credentials: Incomplete | None = None, + result_code, matched_dn: str = "", diagnostic_message: str = "", referral=None, server_sasl_credentials=None ): ... def bind_response_to_dict(response): ... def sicily_bind_response_to_dict(response): ... diff --git a/stubs/ldap3/ldap3/operation/compare.pyi b/stubs/ldap3/ldap3/operation/compare.pyi index 88d507c4c31b..911781143cc4 100644 --- a/stubs/ldap3/ldap3/operation/compare.pyi +++ b/stubs/ldap3/ldap3/operation/compare.pyi @@ -1,13 +1,3 @@ -from _typeshed import Incomplete - -def compare_operation( - dn, - attribute, - value, - auto_encode, - schema: Incomplete | None = None, - validator: Incomplete | None = None, - check_names: bool = False, -): ... +def compare_operation(dn, attribute, value, auto_encode, schema=None, validator=None, check_names: bool = False): ... def compare_request_to_dict(request): ... def compare_response_to_dict(response): ... diff --git a/stubs/ldap3/ldap3/operation/modify.pyi b/stubs/ldap3/ldap3/operation/modify.pyi index 971f323f2264..53ff3564333c 100644 --- a/stubs/ldap3/ldap3/operation/modify.pyi +++ b/stubs/ldap3/ldap3/operation/modify.pyi @@ -1,10 +1,7 @@ -from _typeshed import Incomplete from typing import Any change_table: Any -def modify_operation( - dn, changes, auto_encode, schema: Incomplete | None = None, validator: Incomplete | None = None, check_names: bool = False -): ... +def modify_operation(dn, changes, auto_encode, schema=None, validator=None, check_names: bool = False): ... def modify_request_to_dict(request): ... def modify_response_to_dict(response): ... diff --git a/stubs/ldap3/ldap3/operation/modifyDn.pyi b/stubs/ldap3/ldap3/operation/modifyDn.pyi index dcd409b7edde..b69d03458aae 100644 --- a/stubs/ldap3/ldap3/operation/modifyDn.pyi +++ b/stubs/ldap3/ldap3/operation/modifyDn.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - -def modify_dn_operation(dn, new_relative_dn, delete_old_rdn: bool = True, new_superior: Incomplete | None = None): ... +def modify_dn_operation(dn, new_relative_dn, delete_old_rdn: bool = True, new_superior=None): ... def modify_dn_request_to_dict(request): ... def modify_dn_response_to_dict(response): ... diff --git a/stubs/ldap3/ldap3/operation/search.pyi b/stubs/ldap3/ldap3/operation/search.pyi index 19df68da5c1e..24577fea092c 100644 --- a/stubs/ldap3/ldap3/operation/search.pyi +++ b/stubs/ldap3/ldap3/operation/search.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any ROOT: int @@ -22,7 +21,7 @@ class FilterNode: parent: Any assertion: Any elements: Any - def __init__(self, tag: Incomplete | None = None, assertion: Incomplete | None = None) -> None: ... + def __init__(self, tag=None, assertion=None) -> None: ... def __str__(self, pos: int = 0) -> str: ... def __repr__(self, pos: int = 0) -> str: ... def append(self, filter_node): ... @@ -42,8 +41,8 @@ def search_operation( types_only, auto_escape, auto_encode, - schema: Incomplete | None = None, - validator: Incomplete | None = None, + schema=None, + validator=None, check_names: bool = False, ): ... def decode_vals(vals): ... @@ -54,10 +53,8 @@ def decode_raw_vals(vals): ... def decode_raw_vals_fast(vals): ... def raw_attributes_to_dict(attribute_list): ... def raw_attributes_to_dict_fast(attribute_list): ... -def checked_attributes_to_dict(attribute_list, schema: Incomplete | None = None, custom_formatter: Incomplete | None = None): ... -def checked_attributes_to_dict_fast( - attribute_list, schema: Incomplete | None = None, custom_formatter: Incomplete | None = None -): ... +def checked_attributes_to_dict(attribute_list, schema=None, custom_formatter=None): ... +def checked_attributes_to_dict_fast(attribute_list, schema=None, custom_formatter=None): ... def matching_rule_assertion_to_string(matching_rule_assertion): ... def filter_to_string(filter_object): ... def search_request_to_dict(request): ... diff --git a/stubs/ldap3/ldap3/protocol/convert.pyi b/stubs/ldap3/ldap3/protocol/convert.pyi index e85da5f58302..10b06b4f6165 100644 --- a/stubs/ldap3/ldap3/protocol/convert.pyi +++ b/stubs/ldap3/ldap3/protocol/convert.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - def to_str_or_normalized_unicode(val): ... def attribute_to_dict(attribute): ... def attributes_to_dict(attributes): ... @@ -17,8 +15,6 @@ def substring_to_dict(substring): ... def prepare_changes_for_request(changes): ... def build_controls_list(controls): ... def validate_assertion_value(schema, name, value, auto_escape, auto_encode, validator, check_names): ... -def validate_attribute_value( - schema, name, value, auto_encode, validator: Incomplete | None = None, check_names: bool = False -): ... +def validate_attribute_value(schema, name, value, auto_encode, validator=None, check_names: bool = False): ... def prepare_filter_for_sending(raw_string): ... def prepare_for_sending(raw_string): ... diff --git a/stubs/ldap3/ldap3/protocol/rfc2696.pyi b/stubs/ldap3/ldap3/protocol/rfc2696.pyi index 7e72093e8b51..4df6aa5aed3e 100644 --- a/stubs/ldap3/ldap3/protocol/rfc2696.pyi +++ b/stubs/ldap3/ldap3/protocol/rfc2696.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Final from pyasn1.type.constraint import ConstraintsIntersection, ValueRangeConstraint @@ -17,4 +16,4 @@ class Cookie(OctetString): ... class RealSearchControlValue(Sequence): componentType: NamedTypes -def paged_search_control(criticality: bool = False, size: int = 10, cookie: Incomplete | None = None): ... +def paged_search_control(criticality: bool = False, size: int = 10, cookie=None): ... diff --git a/stubs/ldap3/ldap3/protocol/rfc2849.pyi b/stubs/ldap3/ldap3/protocol/rfc2849.pyi index 6bfed49cbc47..03de80172871 100644 --- a/stubs/ldap3/ldap3/protocol/rfc2849.pyi +++ b/stubs/ldap3/ldap3/protocol/rfc2849.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any conf_ldif_line_length: Any @@ -7,12 +6,12 @@ def safe_ldif_string(bytes_value): ... def add_controls(controls, all_base64): ... def add_attributes(attributes, all_base64): ... def sort_ldif_lines(lines, sort_order): ... -def search_response_to_ldif(entries, all_base64, sort_order: Incomplete | None = None): ... -def add_request_to_ldif(entry, all_base64, sort_order: Incomplete | None = None): ... -def delete_request_to_ldif(entry, all_base64, sort_order: Incomplete | None = None): ... -def modify_request_to_ldif(entry, all_base64, sort_order: Incomplete | None = None): ... -def modify_dn_request_to_ldif(entry, all_base64, sort_order: Incomplete | None = None): ... -def operation_to_ldif(operation_type, entries, all_base64: bool = False, sort_order: Incomplete | None = None): ... +def search_response_to_ldif(entries, all_base64, sort_order=None): ... +def add_request_to_ldif(entry, all_base64, sort_order=None): ... +def delete_request_to_ldif(entry, all_base64, sort_order=None): ... +def modify_request_to_ldif(entry, all_base64, sort_order=None): ... +def modify_dn_request_to_ldif(entry, all_base64, sort_order=None): ... +def operation_to_ldif(operation_type, entries, all_base64: bool = False, sort_order=None): ... def add_ldif_header(ldif_lines): ... def ldif_sort(line, sort_order): ... def decode_persistent_search_control(change): ... diff --git a/stubs/ldap3/ldap3/protocol/rfc4512.pyi b/stubs/ldap3/ldap3/protocol/rfc4512.pyi index 6f586820061d..b3c3d10f426a 100644 --- a/stubs/ldap3/ldap3/protocol/rfc4512.pyi +++ b/stubs/ldap3/ldap3/protocol/rfc4512.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any def constant_to_class_kind(value): ... @@ -13,9 +12,9 @@ class BaseServerInfo: raw: Any def __init__(self, raw_attributes) -> None: ... @classmethod - def from_json(cls, json_definition, schema: Incomplete | None = None, custom_formatter: Incomplete | None = None): ... + def from_json(cls, json_definition, schema=None, custom_formatter=None): ... @classmethod - def from_file(cls, target, schema: Incomplete | None = None, custom_formatter: Incomplete | None = None): ... + def from_file(cls, target, schema=None, custom_formatter=None): ... def to_file(self, target, indent: int = 4, sort: bool = True) -> None: ... def to_json(self, indent: int = 4, sort: bool = True): ... @@ -58,14 +57,7 @@ class BaseObjectInfo: experimental: Any raw_definition: Any def __init__( - self, - oid: Incomplete | None = None, - name: Incomplete | None = None, - description: Incomplete | None = None, - obsolete: bool = False, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, + self, oid=None, name=None, description=None, obsolete: bool = False, extensions=None, experimental=None, definition=None ) -> None: ... @property def oid_info(self): ... @@ -76,28 +68,28 @@ class MatchingRuleInfo(BaseObjectInfo): syntax: Any def __init__( self, - oid: Incomplete | None = None, - name: Incomplete | None = None, - description: Incomplete | None = None, + oid=None, + name=None, + description=None, obsolete: bool = False, - syntax: Incomplete | None = None, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, + syntax=None, + extensions=None, + experimental=None, + definition=None, ) -> None: ... class MatchingRuleUseInfo(BaseObjectInfo): apply_to: Any def __init__( self, - oid: Incomplete | None = None, - name: Incomplete | None = None, - description: Incomplete | None = None, + oid=None, + name=None, + description=None, obsolete: bool = False, - apply_to: Incomplete | None = None, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, + apply_to=None, + extensions=None, + experimental=None, + definition=None, ) -> None: ... class ObjectClassInfo(BaseObjectInfo): @@ -107,17 +99,17 @@ class ObjectClassInfo(BaseObjectInfo): may_contain: Any def __init__( self, - oid: Incomplete | None = None, - name: Incomplete | None = None, - description: Incomplete | None = None, + oid=None, + name=None, + description=None, obsolete: bool = False, - superior: Incomplete | None = None, - kind: Incomplete | None = None, - must_contain: Incomplete | None = None, - may_contain: Incomplete | None = None, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, + superior=None, + kind=None, + must_contain=None, + may_contain=None, + extensions=None, + experimental=None, + definition=None, ) -> None: ... class AttributeTypeInfo(BaseObjectInfo): @@ -135,34 +127,27 @@ class AttributeTypeInfo(BaseObjectInfo): optional_in: Any def __init__( self, - oid: Incomplete | None = None, - name: Incomplete | None = None, - description: Incomplete | None = None, + oid=None, + name=None, + description=None, obsolete: bool = False, - superior: Incomplete | None = None, - equality: Incomplete | None = None, - ordering: Incomplete | None = None, - substring: Incomplete | None = None, - syntax: Incomplete | None = None, - min_length: Incomplete | None = None, + superior=None, + equality=None, + ordering=None, + substring=None, + syntax=None, + min_length=None, single_value: bool = False, collective: bool = False, no_user_modification: bool = False, - usage: Incomplete | None = None, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, + usage=None, + extensions=None, + experimental=None, + definition=None, ) -> None: ... class LdapSyntaxInfo(BaseObjectInfo): - def __init__( - self, - oid: Incomplete | None = None, - description: Incomplete | None = None, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, - ) -> None: ... + def __init__(self, oid=None, description=None, extensions=None, experimental=None, definition=None) -> None: ... class DitContentRuleInfo(BaseObjectInfo): auxiliary_classes: Any @@ -171,17 +156,17 @@ class DitContentRuleInfo(BaseObjectInfo): not_contains: Any def __init__( self, - oid: Incomplete | None = None, - name: Incomplete | None = None, - description: Incomplete | None = None, + oid=None, + name=None, + description=None, obsolete: bool = False, - auxiliary_classes: Incomplete | None = None, - must_contain: Incomplete | None = None, - may_contain: Incomplete | None = None, - not_contains: Incomplete | None = None, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, + auxiliary_classes=None, + must_contain=None, + may_contain=None, + not_contains=None, + extensions=None, + experimental=None, + definition=None, ) -> None: ... class DitStructureRuleInfo(BaseObjectInfo): @@ -189,15 +174,15 @@ class DitStructureRuleInfo(BaseObjectInfo): name_form: Any def __init__( self, - oid: Incomplete | None = None, - name: Incomplete | None = None, - description: Incomplete | None = None, + oid=None, + name=None, + description=None, obsolete: bool = False, - name_form: Incomplete | None = None, - superior: Incomplete | None = None, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, + name_form=None, + superior=None, + extensions=None, + experimental=None, + definition=None, ) -> None: ... class NameFormInfo(BaseObjectInfo): @@ -206,14 +191,14 @@ class NameFormInfo(BaseObjectInfo): may_contain: Any def __init__( self, - oid: Incomplete | None = None, - name: Incomplete | None = None, - description: Incomplete | None = None, + oid=None, + name=None, + description=None, obsolete: bool = False, - object_class: Incomplete | None = None, - must_contain: Incomplete | None = None, - may_contain: Incomplete | None = None, - extensions: Incomplete | None = None, - experimental: Incomplete | None = None, - definition: Incomplete | None = None, + object_class=None, + must_contain=None, + may_contain=None, + extensions=None, + experimental=None, + definition=None, ) -> None: ... diff --git a/stubs/ldap3/ldap3/strategy/base.pyi b/stubs/ldap3/ldap3/strategy/base.pyi index f0437a94e41d..41fb3a05c1a6 100644 --- a/stubs/ldap3/ldap3/strategy/base.pyi +++ b/stubs/ldap3/ldap3/strategy/base.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any unix_socket_available: bool @@ -17,8 +16,8 @@ class BaseStrategy: def __init__(self, ldap_connection) -> None: ... def open(self, reset_usage: bool = True, read_server_info: bool = True) -> None: ... def close(self) -> None: ... - def send(self, message_type, request, controls: Incomplete | None = None): ... - def get_response(self, message_id, timeout: Incomplete | None = None, get_request: bool = False): ... + def send(self, message_type, request, controls=None): ... + def get_response(self, message_id, timeout=None, get_request: bool = False): ... @staticmethod def compute_ldap_message_size(data): ... def decode_response(self, ldap_message): ... @@ -28,7 +27,7 @@ class BaseStrategy: @staticmethod def decode_control_fast(control, from_server: bool = True): ... @staticmethod - def decode_request(message_type, component, controls: Incomplete | None = None): ... + def decode_request(message_type, component, controls=None): ... def valid_referral_list(self, referrals): ... def do_next_range_search(self, request, response, attr_name): ... def do_search_on_auto_range(self, request, response): ... diff --git a/stubs/ldap3/ldap3/strategy/ldifProducer.pyi b/stubs/ldap3/ldap3/strategy/ldifProducer.pyi index 5daee79b5fa9..0c740e77cc2a 100644 --- a/stubs/ldap3/ldap3/strategy/ldifProducer.pyi +++ b/stubs/ldap3/ldap3/strategy/ldifProducer.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from .base import BaseStrategy @@ -14,7 +13,7 @@ class LdifProducerStrategy(BaseStrategy): order: Any def __init__(self, ldap_connection) -> None: ... def receiving(self) -> None: ... - def send(self, message_type, request, controls: Incomplete | None = None): ... + def send(self, message_type, request, controls=None): ... def post_send_single_response(self, message_id): ... def post_send_search(self, message_id) -> None: ... def accumulate_stream(self, fragment) -> None: ... diff --git a/stubs/ldap3/ldap3/strategy/mockAsync.pyi b/stubs/ldap3/ldap3/strategy/mockAsync.pyi index 3b690c890982..619b8befa28e 100644 --- a/stubs/ldap3/ldap3/strategy/mockAsync.pyi +++ b/stubs/ldap3/ldap3/strategy/mockAsync.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from .asynchronous import AsyncStrategy @@ -9,4 +8,4 @@ class MockAsyncStrategy(MockBaseStrategy, AsyncStrategy): def post_send_search(self, payload): ... bound: Any def post_send_single_response(self, payload): ... - def get_response(self, message_id, timeout: Incomplete | None = None, get_request: bool = False): ... + def get_response(self, message_id, timeout=None, get_request: bool = False): ... diff --git a/stubs/ldap3/ldap3/strategy/mockBase.pyi b/stubs/ldap3/ldap3/strategy/mockBase.pyi index e5d9e213bcc4..8f828dcfc12b 100644 --- a/stubs/ldap3/ldap3/strategy/mockBase.pyi +++ b/stubs/ldap3/ldap3/strategy/mockBase.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any SEARCH_CONTROLS: Any @@ -13,7 +12,7 @@ class PagedSearchSet: sent: int done: bool def __init__(self, response, size, criticality) -> None: ... - def next(self, size: Incomplete | None = None): ... + def next(self, size=None): ... class MockBaseStrategy: entries: Any @@ -35,4 +34,4 @@ class MockBaseStrategy: def mock_extended(self, request_message, controls): ... def evaluate_filter_node(self, node, candidates): ... def equal(self, dn, attribute_type, value_to_check): ... - def send(self, message_type, request, controls: Incomplete | None = None): ... + def send(self, message_type, request, controls=None): ... diff --git a/stubs/ldap3/ldap3/strategy/restartable.pyi b/stubs/ldap3/ldap3/strategy/restartable.pyi index f7bce1d24bda..4e5c6dc3779f 100644 --- a/stubs/ldap3/ldap3/strategy/restartable.pyi +++ b/stubs/ldap3/ldap3/strategy/restartable.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from .sync import SyncStrategy @@ -13,7 +12,7 @@ class RestartableStrategy(SyncStrategy): exception_history: Any def __init__(self, ldap_connection) -> None: ... def open(self, reset_usage: bool = False, read_server_info: bool = True) -> None: ... - def send(self, message_type, request, controls: Incomplete | None = None): ... + def send(self, message_type, request, controls=None): ... def post_send_single_response(self, message_id): ... def post_send_search(self, message_id): ... def get_stream(self) -> None: ... diff --git a/stubs/ldap3/ldap3/strategy/reusable.pyi b/stubs/ldap3/ldap3/strategy/reusable.pyi index 10413bcff780..4624d7058fad 100644 --- a/stubs/ldap3/ldap3/strategy/reusable.pyi +++ b/stubs/ldap3/ldap3/strategy/reusable.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from threading import Thread from typing import Any @@ -69,8 +68,8 @@ class ReusableStrategy(BaseStrategy): def __init__(self, ldap_connection) -> None: ... def open(self, reset_usage: bool = True, read_server_info: bool = True) -> None: ... def terminate(self) -> None: ... - def send(self, message_type, request, controls: Incomplete | None = None): ... + def send(self, message_type, request, controls=None): ... def validate_bind(self, controls): ... - def get_response(self, counter, timeout: Incomplete | None = None, get_request: bool = False): ... + def get_response(self, counter, timeout=None, get_request: bool = False): ... def post_send_single_response(self, counter): ... def post_send_search(self, counter): ... diff --git a/stubs/ldap3/ldap3/utils/ciDict.pyi b/stubs/ldap3/ldap3/utils/ciDict.pyi index 333dac5983c1..ff9abffa557e 100644 --- a/stubs/ldap3/ldap3/utils/ciDict.pyi +++ b/stubs/ldap3/ldap3/utils/ciDict.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import MutableMapping from typing import TypeVar @@ -6,7 +5,7 @@ _KT = TypeVar("_KT") _VT = TypeVar("_VT") class CaseInsensitiveDict(MutableMapping[_KT, _VT]): - def __init__(self, other: Incomplete | None = None, **kwargs) -> None: ... + def __init__(self, other=None, **kwargs) -> None: ... def __contains__(self, item): ... def __delitem__(self, key) -> None: ... def __setitem__(self, key, item) -> None: ... @@ -20,7 +19,7 @@ class CaseInsensitiveDict(MutableMapping[_KT, _VT]): def copy(self): ... class CaseInsensitiveWithAliasDict(CaseInsensitiveDict[_KT, _VT]): - def __init__(self, other: Incomplete | None = None, **kwargs) -> None: ... + def __init__(self, other=None, **kwargs) -> None: ... def aliases(self): ... def __setitem__(self, key, value) -> None: ... def __delitem__(self, key) -> None: ... diff --git a/stubs/ldap3/ldap3/utils/conv.pyi b/stubs/ldap3/ldap3/utils/conv.pyi index 6837700a346c..a31439c08e46 100644 --- a/stubs/ldap3/ldap3/utils/conv.pyi +++ b/stubs/ldap3/ldap3/utils/conv.pyi @@ -1,9 +1,7 @@ -from _typeshed import Incomplete - def to_unicode(obj: float | bytes | str, encoding: str | None = None, from_server: bool = False) -> str: ... def to_raw(obj, encoding: str = "utf-8"): ... def escape_filter_chars(text: float | bytes | str, encoding: str | None = None) -> str: ... -def unescape_filter_chars(text, encoding: Incomplete | None = None): ... +def unescape_filter_chars(text, encoding=None): ... def escape_bytes(bytes_value: str | bytes) -> str: ... def prepare_for_stream(value): ... def json_encode_b64(obj): ... diff --git a/stubs/ldap3/ldap3/utils/hashed.pyi b/stubs/ldap3/ldap3/utils/hashed.pyi index e255563f99c4..c4aa9f8a3d49 100644 --- a/stubs/ldap3/ldap3/utils/hashed.pyi +++ b/stubs/ldap3/ldap3/utils/hashed.pyi @@ -1,7 +1,6 @@ -from _typeshed import Incomplete from typing import Any algorithms_table: Any salted_table: Any -def hashed(algorithm, value, salt: Incomplete | None = None, raw: bool = False, encoding: str = "utf-8"): ... +def hashed(algorithm, value, salt=None, raw: bool = False, encoding: str = "utf-8"): ... diff --git a/stubs/m3u8/m3u8/__init__.pyi b/stubs/m3u8/m3u8/__init__.pyi index c2d7c4548a93..888edc10743c 100644 --- a/stubs/m3u8/m3u8/__init__.pyi +++ b/stubs/m3u8/m3u8/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable, Mapping from typing import Any from typing_extensions import TypeAlias @@ -66,7 +65,7 @@ _CustomTagsParser: TypeAlias = Callable[[str, int, dict[str, Any], dict[str, Any def loads(content: str, uri: str | None = None, custom_tags_parser: _CustomTagsParser | None = None) -> M3U8: ... def load( uri: str, - timeout: Incomplete | None = None, + timeout=None, headers: Mapping[str, Any] = {}, custom_tags_parser: _CustomTagsParser | None = None, http_client: _HTTPClientProtocol = ..., diff --git a/stubs/m3u8/m3u8/model.pyi b/stubs/m3u8/m3u8/model.pyi index 17e7ef4941fe..d9b50c11f051 100644 --- a/stubs/m3u8/m3u8/model.pyi +++ b/stubs/m3u8/m3u8/model.pyi @@ -177,12 +177,12 @@ class PartialSegment(BasePathMixin): uri: str | None, duration: float | None, program_date_time: dt.datetime | None = None, - current_program_date_time: Incomplete | None = None, - byterange: Incomplete | None = None, - independent: Incomplete | None = None, - gap: Incomplete | None = None, + current_program_date_time=None, + byterange=None, + independent=None, + gap=None, dateranges: list[Mapping[str, Incomplete]] | None = None, - gap_tag: Incomplete | None = None, + gap_tag=None, ) -> None: ... def dumps(self, last_segment) -> str: ... diff --git a/stubs/mock/mock/mock.pyi b/stubs/mock/mock/mock.pyi index 132f1ffde4ee..a4ad35e575cb 100644 --- a/stubs/mock/mock/mock.pyi +++ b/stubs/mock/mock/mock.pyi @@ -47,24 +47,12 @@ DEFAULT: _SentinelObject class _Call(tuple[Any, ...]): def __new__( - cls, - value: Any = (), - name: Incomplete | None = "", - parent: Incomplete | None = None, - two: bool = False, - from_kall: bool = True, + cls, value: Any = (), name: Incomplete | None = "", parent=None, two: bool = False, from_kall: bool = True ) -> Self: ... name: Any parent: Any from_kall: Any - def __init__( - self, - value: Any = (), - name: Incomplete | None = None, - parent: Incomplete | None = None, - two: bool = False, - from_kall: bool = True, - ) -> None: ... + def __init__(self, value: Any = (), name=None, parent=None, two: bool = False, from_kall: bool = True) -> None: ... def __eq__(self, other: object) -> bool: ... def __ne__(self, other: object, /) -> bool: ... def __call__(self, *args: Any, **kwargs: Any) -> _Call: ... @@ -93,7 +81,7 @@ class NonCallableMock(Base, Any): name: str | None = None, spec_set: list[str] | object | type[object] | None = None, parent: NonCallableMock | None = None, - _spec_state: Incomplete | None = None, + _spec_state=None, _new_name: str = "", _new_parent: NonCallableMock | None = None, _spec_as_instance: bool = False, @@ -108,7 +96,7 @@ class NonCallableMock(Base, Any): name: str | None = None, spec_set: list[str] | object | type[object] | None = None, parent: NonCallableMock | None = None, - _spec_state: Incomplete | None = None, + _spec_state=None, _new_name: str = "", _new_parent: NonCallableMock | None = None, _spec_as_instance: bool = False, @@ -147,16 +135,16 @@ class CallableMixin(Base): side_effect: Any def __init__( self, - spec: Incomplete | None = None, - side_effect: Incomplete | None = None, + spec=None, + side_effect=None, return_value: Any = ..., - wraps: Incomplete | None = None, - name: Incomplete | None = None, - spec_set: Incomplete | None = None, - parent: Incomplete | None = None, - _spec_state: Incomplete | None = None, + wraps=None, + name=None, + spec_set=None, + parent=None, + _spec_state=None, _new_name: Any = "", - _new_parent: Incomplete | None = None, + _new_parent=None, **kwargs: Any, ) -> None: ... def __call__(_mock_self, *args: Any, **kwargs: Any) -> Any: ... @@ -341,7 +329,7 @@ class MagicProxy(Base): parent: Any def __init__(self, name: str, parent: Any) -> None: ... def create_mock(self) -> Any: ... - def __get__(self, obj: Any, _type: Incomplete | None = None) -> Any: ... + def __get__(self, obj: Any, _type=None) -> Any: ... class _ANY: def __eq__(self, other: object) -> Literal[True]: ... @@ -350,14 +338,7 @@ class _ANY: ANY: Any def create_autospec( - spec: Any, - spec_set: Any = False, - instance: Any = False, - _parent: Incomplete | None = None, - _name: Incomplete | None = None, - *, - unsafe: bool = False, - **kwargs: Any, + spec: Any, spec_set: Any = False, instance: Any = False, _parent=None, _name=None, *, unsafe: bool = False, **kwargs: Any ) -> Any: ... class _SpecState: @@ -367,17 +348,9 @@ class _SpecState: parent: Any instance: Any name: Any - def __init__( - self, - spec: Any, - spec_set: Any = False, - parent: Incomplete | None = None, - name: Incomplete | None = None, - ids: Incomplete | None = None, - instance: Any = False, - ) -> None: ... + def __init__(self, spec: Any, spec_set: Any = False, parent=None, name=None, ids=None, instance: Any = False) -> None: ... -def mock_open(mock: Incomplete | None = None, read_data: Any = "") -> Any: ... +def mock_open(mock=None, read_data: Any = "") -> Any: ... class PropertyMock(Mock): def __get__(self, obj: _T, obj_type: type[_T] | None = None) -> Self: ... diff --git a/stubs/mysqlclient/MySQLdb/cursors.pyi b/stubs/mysqlclient/MySQLdb/cursors.pyi index f572c38e1ab3..e3111af67896 100644 --- a/stubs/mysqlclient/MySQLdb/cursors.pyi +++ b/stubs/mysqlclient/MySQLdb/cursors.pyi @@ -39,7 +39,7 @@ class BaseCursor: def nextset(self): ... def setinputsizes(self, *args) -> None: ... def setoutputsizes(self, *args) -> None: ... - def execute(self, query, args: Incomplete | None = None): ... + def execute(self, query, args=None): ... def mogrify(self, query: str | bytes, args: _Arguments | None = None) -> str: ... def executemany(self, query: LiteralString, args: Iterable[_Arguments]) -> int | None: ... def callproc(self, procname, args=()): ... @@ -48,7 +48,7 @@ class BaseCursor: class CursorStoreResultMixIn: rownumber: Incomplete def fetchone(self): ... - def fetchmany(self, size: Incomplete | None = None): ... + def fetchmany(self, size=None): ... def fetchall(self): ... def scroll(self, value, mode: str = "relative") -> None: ... def __iter__(self): ... @@ -56,7 +56,7 @@ class CursorStoreResultMixIn: class CursorUseResultMixIn: rownumber: Incomplete def fetchone(self): ... - def fetchmany(self, size: Incomplete | None = None): ... + def fetchmany(self, size=None): ... def fetchall(self): ... def __iter__(self): ... def next(self): ... diff --git a/stubs/oauthlib/oauthlib/common.pyi b/stubs/oauthlib/oauthlib/common.pyi index f691b0e496f3..9fd6b272e212 100644 --- a/stubs/oauthlib/oauthlib/common.pyi +++ b/stubs/oauthlib/oauthlib/common.pyi @@ -52,7 +52,7 @@ class CaseInsensitiveDict(dict[str, Incomplete]): def __contains__(self, k: object) -> bool: ... def __delitem__(self, k: str) -> None: ... def __getitem__(self, k: str): ... - def get(self, k: str, default: Incomplete | None = None) -> Incomplete | None: ... + def get(self, k: str, default=None) -> Incomplete | None: ... def __setitem__(self, k: str, v) -> None: ... def update(self, *args, **kwargs) -> None: ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/__init__.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/__init__.pyi index a98b62b667fb..6730205943f7 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/__init__.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/__init__.pyi @@ -41,26 +41,19 @@ class Client: self, client_key: str, client_secret: str | None = None, - resource_owner_key: Incomplete | None = None, - resource_owner_secret: Incomplete | None = None, - callback_uri: Incomplete | None = None, + resource_owner_key=None, + resource_owner_secret=None, + callback_uri=None, signature_method="HMAC-SHA1", signature_type="AUTH_HEADER", - rsa_key: Incomplete | None = None, - verifier: Incomplete | None = None, - realm: Incomplete | None = None, + rsa_key=None, + verifier=None, + realm=None, encoding: str = "utf-8", - decoding: Incomplete | None = None, - nonce: Incomplete | None = None, - timestamp: Incomplete | None = None, + decoding=None, + nonce=None, + timestamp=None, ): ... def get_oauth_signature(self, request): ... def get_oauth_params(self, request): ... - def sign( - self, - uri, - http_method: str = "GET", - body: str | None = None, - headers: dict[str, str] | None = None, - realm: Incomplete | None = None, - ): ... + def sign(self, uri, http_method: str = "GET", body: str | None = None, headers: dict[str, str] | None = None, realm=None): ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/access_token.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/access_token.pyi index a9f541a2b282..1a05e8f7a9b2 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/access_token.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/access_token.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from logging import Logger from .base import BaseEndpoint as BaseEndpoint @@ -7,12 +6,5 @@ log: Logger class AccessTokenEndpoint(BaseEndpoint): def create_access_token(self, request, credentials): ... - def create_access_token_response( - self, - uri, - http_method: str = "GET", - body: Incomplete | None = None, - headers: Incomplete | None = None, - credentials: Incomplete | None = None, - ): ... + def create_access_token_response(self, uri, http_method: str = "GET", body=None, headers=None, credentials=None): ... def validate_access_token_request(self, request): ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/authorization.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/authorization.pyi index 24c7747e1115..478b0dc9ff20 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/authorization.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/authorization.pyi @@ -1,18 +1,8 @@ -from _typeshed import Incomplete - from .base import BaseEndpoint as BaseEndpoint class AuthorizationEndpoint(BaseEndpoint): def create_verifier(self, request, credentials): ... def create_authorization_response( - self, - uri, - http_method: str = "GET", - body: Incomplete | None = None, - headers: Incomplete | None = None, - realms: Incomplete | None = None, - credentials: Incomplete | None = None, - ): ... - def get_realms_and_credentials( - self, uri, http_method: str = "GET", body: Incomplete | None = None, headers: Incomplete | None = None + self, uri, http_method: str = "GET", body=None, headers=None, realms=None, credentials=None ): ... + def get_realms_and_credentials(self, uri, http_method: str = "GET", body=None, headers=None): ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/base.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/base.pyi index 941c42ac8033..6ba5cb7a6471 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/base.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/base.pyi @@ -1,7 +1,6 @@ -from _typeshed import Incomplete from typing import Any class BaseEndpoint: request_validator: Any token_generator: Any - def __init__(self, request_validator, token_generator: Incomplete | None = None) -> None: ... + def __init__(self, request_validator, token_generator=None) -> None: ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/request_token.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/request_token.pyi index dcdd497ec614..9f8f06aca4d7 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/request_token.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/request_token.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from logging import Logger from .base import BaseEndpoint as BaseEndpoint @@ -7,12 +6,5 @@ log: Logger class RequestTokenEndpoint(BaseEndpoint): def create_request_token(self, request, credentials): ... - def create_request_token_response( - self, - uri, - http_method: str = "GET", - body: Incomplete | None = None, - headers: Incomplete | None = None, - credentials: Incomplete | None = None, - ): ... + def create_request_token_response(self, uri, http_method: str = "GET", body=None, headers=None, credentials=None): ... def validate_request_token_request(self, request): ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/resource.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/resource.pyi index c59cab3e82f8..a262b1a70729 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/resource.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/resource.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from logging import Logger from .base import BaseEndpoint as BaseEndpoint @@ -6,11 +5,4 @@ from .base import BaseEndpoint as BaseEndpoint log: Logger class ResourceEndpoint(BaseEndpoint): - def validate_protected_resource_request( - self, - uri, - http_method: str = "GET", - body: Incomplete | None = None, - headers: Incomplete | None = None, - realms: Incomplete | None = None, - ): ... + def validate_protected_resource_request(self, uri, http_method: str = "GET", body=None, headers=None, realms=None): ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/signature_only.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/signature_only.pyi index 38ac0d31be9d..8000469a86c3 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/signature_only.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/endpoints/signature_only.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from logging import Logger from .base import BaseEndpoint as BaseEndpoint @@ -6,6 +5,4 @@ from .base import BaseEndpoint as BaseEndpoint log: Logger class SignatureOnlyEndpoint(BaseEndpoint): - def validate_request( - self, uri, http_method: str = "GET", body: Incomplete | None = None, headers: Incomplete | None = None - ): ... + def validate_request(self, uri, http_method: str = "GET", body=None, headers=None): ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/errors.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/errors.pyi index 4e05e4eca034..1337e5b76355 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/errors.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/errors.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any class OAuth1Error(Exception): @@ -6,13 +5,7 @@ class OAuth1Error(Exception): description: str uri: Any status_code: Any - def __init__( - self, - description: Incomplete | None = None, - uri: Incomplete | None = None, - status_code: int = 400, - request: Incomplete | None = None, - ) -> None: ... + def __init__(self, description=None, uri=None, status_code: int = 400, request=None) -> None: ... def in_uri(self, uri): ... @property def twotuples(self): ... diff --git a/stubs/oauthlib/oauthlib/oauth1/rfc5849/signature.pyi b/stubs/oauthlib/oauthlib/oauth1/rfc5849/signature.pyi index 9da09f5d07e3..c86e96d0f646 100644 --- a/stubs/oauthlib/oauthlib/oauth1/rfc5849/signature.pyi +++ b/stubs/oauthlib/oauthlib/oauth1/rfc5849/signature.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, Unused +from _typeshed import Unused from collections.abc import Iterable from logging import Logger @@ -17,14 +17,10 @@ def collect_parameters( ) -> list[tuple[str, str]]: ... def normalize_parameters(params: dict[str, str]) -> str: ... def sign_hmac_sha1_with_client(sig_base_str: str, client): ... -def verify_hmac_sha1( - request: Request, client_secret: Incomplete | None = None, resource_owner_secret: Incomplete | None = None -) -> bool: ... +def verify_hmac_sha1(request: Request, client_secret=None, resource_owner_secret=None) -> bool: ... def sign_hmac_sha1(base_string: str | bytes, client_secret, resource_owner_secret): ... def sign_hmac_sha256_with_client(sig_base_str, client): ... -def verify_hmac_sha256( - request, client_secret: Incomplete | None = None, resource_owner_secret: Incomplete | None = None -) -> bool: ... +def verify_hmac_sha256(request, client_secret=None, resource_owner_secret=None) -> bool: ... def sign_hmac_sha256(base_string: str | bytes, client_secret, resource_owner_secret): ... def sign_hmac_sha512_with_client(sig_base_str: str, client): ... def verify_hmac_sha512(request, client_secret: str | None = None, resource_owner_secret: str | None = None) -> bool: ... diff --git a/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/authorization.pyi b/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/authorization.pyi index cf7ead300b4a..f4604fd1fe0b 100644 --- a/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/authorization.pyi +++ b/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/authorization.pyi @@ -23,7 +23,7 @@ class AuthorizationEndpoint(BaseEndpoint): http_method: _HTTPMethod = "GET", body: str | None = None, headers: dict[str, str] | None = None, - scopes: Incomplete | None = None, + scopes=None, credentials: dict[str, Incomplete] | None = None, ): ... def validate_authorization_request( diff --git a/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/resource.pyi b/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/resource.pyi index 9259ac8d4920..8c27bdffec02 100644 --- a/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/resource.pyi +++ b/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/resource.pyi @@ -21,6 +21,6 @@ class ResourceEndpoint(BaseEndpoint): http_method: _HTTPMethod = "GET", body: str | None = None, headers: dict[str, str] | None = None, - scopes: Incomplete | None = None, + scopes=None, ) -> tuple[bool, Request]: ... def find_token_type(self, request: Request): ... diff --git a/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/token.pyi b/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/token.pyi index 9b90fe906b6c..5634512740a0 100644 --- a/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/token.pyi +++ b/stubs/oauthlib/oauthlib/oauth2/rfc6749/endpoints/token.pyi @@ -25,8 +25,8 @@ class TokenEndpoint(BaseEndpoint): http_method: _HTTPMethod = "POST", body: str | None = None, headers: dict[str, str] | None = None, - credentials: Incomplete | None = None, - grant_type_for_scope: Incomplete | None = None, - claims: Incomplete | None = None, + credentials=None, + grant_type_for_scope=None, + claims=None, ): ... def validate_token_request(self, request: Request) -> None: ... diff --git a/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/base.pyi b/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/base.pyi index 24bb8d409449..c7c3039277b3 100644 --- a/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/base.pyi +++ b/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/base.pyi @@ -1,5 +1,4 @@ from _hashlib import HASH -from _typeshed import Incomplete from collections.abc import Callable from logging import Logger @@ -14,7 +13,7 @@ class GrantTypeBase: def id_token_hash( self, value: str, hashfunc: Callable[..., HASH] = ... # Arguments: ReadableBuffer (string) and bool (usedforsecurity) ) -> str: ... - def add_id_token(self, token, token_handler, request: Request, nonce: Incomplete | None = None): ... + def add_id_token(self, token, token_handler, request: Request, nonce=None): ... def openid_authorization_validator(self, request: Request): ... OpenIDConnectBase = GrantTypeBase diff --git a/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/dispatchers.pyi b/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/dispatchers.pyi index 4dcf5a690771..67428ed7d1e8 100644 --- a/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/dispatchers.pyi +++ b/stubs/oauthlib/oauthlib/openid/connect/core/grant_types/dispatchers.pyi @@ -13,14 +13,14 @@ class Dispatcher: class AuthorizationCodeGrantDispatcher(Dispatcher): default_grant: Incomplete | None oidc_grant: Incomplete | None - def __init__(self, default_grant: Incomplete | None = None, oidc_grant: Incomplete | None = None) -> None: ... + def __init__(self, default_grant=None, oidc_grant=None) -> None: ... def create_authorization_response(self, request: Request, token_handler): ... def validate_authorization_request(self, request: Request): ... class ImplicitTokenGrantDispatcher(Dispatcher): default_grant: Incomplete | None oidc_grant: Incomplete | None - def __init__(self, default_grant: Incomplete | None = None, oidc_grant: Incomplete | None = None) -> None: ... + def __init__(self, default_grant=None, oidc_grant=None) -> None: ... def create_authorization_response(self, request: Request, token_handler): ... def validate_authorization_request(self, request: Request): ... @@ -28,10 +28,5 @@ class AuthorizationTokenGrantDispatcher(Dispatcher): default_grant: Incomplete | None oidc_grant: Incomplete | None request_validator: OAuth2RequestValidator - def __init__( - self, - request_validator: OAuth2RequestValidator, - default_grant: Incomplete | None = None, - oidc_grant: Incomplete | None = None, - ) -> None: ... + def __init__(self, request_validator: OAuth2RequestValidator, default_grant=None, oidc_grant=None) -> None: ... def create_token_response(self, request: Request, token_handler): ... diff --git a/stubs/openpyxl/openpyxl/cell/_writer.pyi b/stubs/openpyxl/openpyxl/cell/_writer.pyi index da72488a1370..d079c8c08c77 100644 --- a/stubs/openpyxl/openpyxl/cell/_writer.pyi +++ b/stubs/openpyxl/openpyxl/cell/_writer.pyi @@ -1,8 +1,8 @@ -from _typeshed import Incomplete, Unused +from _typeshed import Unused from openpyxl.cell import _CellOrMergedCell -def etree_write_cell(xf, worksheet: Unused, cell: _CellOrMergedCell, styled: Incomplete | None = None) -> None: ... +def etree_write_cell(xf, worksheet: Unused, cell: _CellOrMergedCell, styled=None) -> None: ... def lxml_write_cell(xf, worksheet: Unused, cell: _CellOrMergedCell, styled: bool = False) -> None: ... write_cell = lxml_write_cell diff --git a/stubs/openpyxl/openpyxl/chart/area_chart.pyi b/stubs/openpyxl/openpyxl/chart/area_chart.pyi index 1ff454f00cfb..2d80d765ccff 100644 --- a/stubs/openpyxl/openpyxl/chart/area_chart.pyi +++ b/stubs/openpyxl/openpyxl/chart/area_chart.pyi @@ -57,4 +57,4 @@ class AreaChart3D(AreaChart): y_axis: Typed[NumericAxis, Literal[False]] z_axis: Typed[SeriesAxis, Literal[True]] __elements__: ClassVar[tuple[str, ...]] - def __init__(self, gapDepth: Incomplete | None = None, **kw) -> None: ... + def __init__(self, gapDepth=None, **kw) -> None: ... diff --git a/stubs/openpyxl/openpyxl/chart/axis.pyi b/stubs/openpyxl/openpyxl/chart/axis.pyi index d11c8b2f1b44..068ac588da0d 100644 --- a/stubs/openpyxl/openpyxl/chart/axis.pyi +++ b/stubs/openpyxl/openpyxl/chart/axis.pyi @@ -115,15 +115,15 @@ class _BaseAxis(Serialisable): majorGridlines: ChartLines | None = None, minorGridlines: ChartLines | None = None, title: str | Title | None = None, - numFmt: Incomplete | None = None, - majorTickMark: Incomplete | None = None, - minorTickMark: Incomplete | None = None, - tickLblPos: Incomplete | None = None, + numFmt=None, + majorTickMark=None, + minorTickMark=None, + tickLblPos=None, spPr: GraphicalProperties | None = None, txPr: RichText | None = None, *, crossAx: _HasTagAndGet[ConvertibleToInt] | ConvertibleToInt, - crosses: Incomplete | None = None, + crosses=None, crossesAt: _HasTagAndGet[ConvertibleToFloat | None] | ConvertibleToFloat | None = None, ) -> None: ... diff --git a/stubs/openpyxl/openpyxl/chart/bar_chart.pyi b/stubs/openpyxl/openpyxl/chart/bar_chart.pyi index b45a3096c65e..c5326c40e3cd 100644 --- a/stubs/openpyxl/openpyxl/chart/bar_chart.pyi +++ b/stubs/openpyxl/openpyxl/chart/bar_chart.pyi @@ -52,12 +52,7 @@ class BarChart(_BarChartBase): __elements__: ClassVar[tuple[str, ...]] legend: Incomplete def __init__( - self, - gapWidth: int = 150, - overlap: Incomplete | None = None, - serLines: ChartLines | None = None, - extLst: Unused = None, - **kw, + self, gapWidth: int = 150, overlap=None, serLines: ChartLines | None = None, extLst: Unused = None, **kw ) -> None: ... class BarChart3D(_BarChartBase, _3DBase): diff --git a/stubs/openpyxl/openpyxl/chart/chartspace.pyi b/stubs/openpyxl/openpyxl/chart/chartspace.pyi index eeaa4f6d4a52..fef551ba034b 100644 --- a/stubs/openpyxl/openpyxl/chart/chartspace.pyi +++ b/stubs/openpyxl/openpyxl/chart/chartspace.pyi @@ -121,7 +121,7 @@ class ChartSpace(Serialisable): txPr: RichText | None = None, externalData: ExternalData | None = None, printSettings: PrintSettings | None = None, - userShapes: Incomplete | None = None, + userShapes=None, extLst: Unused = None, ) -> None: ... @overload @@ -139,7 +139,7 @@ class ChartSpace(Serialisable): txPr: RichText | None = None, externalData: ExternalData | None = None, printSettings: PrintSettings | None = None, - userShapes: Incomplete | None = None, + userShapes=None, extLst: Unused = None, ) -> None: ... def to_tree(self, tagname: Unused = None, idx: Unused = None, namespace: Unused = None) -> Element: ... diff --git a/stubs/openpyxl/openpyxl/chart/data_source.pyi b/stubs/openpyxl/openpyxl/chart/data_source.pyi index 186c02c6f36e..0d7237cd1c10 100644 --- a/stubs/openpyxl/openpyxl/chart/data_source.pyi +++ b/stubs/openpyxl/openpyxl/chart/data_source.pyi @@ -23,7 +23,7 @@ class NumVal(Serialisable): idx: Integer[Literal[False]] formatCode: NestedText[str, Literal[True]] v: Incomplete - def __init__(self, idx: ConvertibleToInt, formatCode: object = None, v: Incomplete | None = None) -> None: ... + def __init__(self, idx: ConvertibleToInt, formatCode: object = None, v=None) -> None: ... class NumData(Serialisable): formatCode: NestedText[str, Literal[True]] diff --git a/stubs/openpyxl/openpyxl/chart/line_chart.pyi b/stubs/openpyxl/openpyxl/chart/line_chart.pyi index c6949aed2168..e03d6c35a397 100644 --- a/stubs/openpyxl/openpyxl/chart/line_chart.pyi +++ b/stubs/openpyxl/openpyxl/chart/line_chart.pyi @@ -78,7 +78,7 @@ class LineChart3D(_LineChartBase): __elements__: ClassVar[tuple[str, ...]] def __init__( self, - gapDepth: Incomplete | None = None, + gapDepth=None, hiLowLines: ChartLines | None = None, upDownBars: UpDownBars | None = None, marker: _HasTagAndGet[_ConvertibleToBool | None] | _ConvertibleToBool | None = None, diff --git a/stubs/openpyxl/openpyxl/chart/pie_chart.pyi b/stubs/openpyxl/openpyxl/chart/pie_chart.pyi index c29375bcd023..f6e1d1fc6f3e 100644 --- a/stubs/openpyxl/openpyxl/chart/pie_chart.pyi +++ b/stubs/openpyxl/openpyxl/chart/pie_chart.pyi @@ -94,7 +94,7 @@ class ProjectedPieChart(_PieChartBase): def __init__( self, ofPieType: _HasTagAndGet[_ProjectedPieChartOfPieType] | _ProjectedPieChartOfPieType = "pie", - gapWidth: Incomplete | None = None, + gapWidth=None, splitType: _NestedNoneSetParam[_ProjectedPieChartSplitType] = "auto", splitPos: _HasTagAndGet[ConvertibleToFloat | None] | ConvertibleToFloat | None = None, custSplit: CustomSplit | None = None, diff --git a/stubs/openpyxl/openpyxl/chart/shapes.pyi b/stubs/openpyxl/openpyxl/chart/shapes.pyi index 1d43dd8ab0ab..c285bbe921a0 100644 --- a/stubs/openpyxl/openpyxl/chart/shapes.pyi +++ b/stubs/openpyxl/openpyxl/chart/shapes.pyi @@ -42,7 +42,7 @@ class GraphicalProperties(Serialisable): solidFill: str | ColorChoice | None = None, gradFill: GradientFillProperties | None = None, pattFill: PatternFillProperties | None = None, - ln: Incomplete | None = None, + ln=None, scene3d: Scene3D | None = None, custGeom: CustomGeometry2D | None = None, prstGeom: PresetGeometry2D | None = None, diff --git a/stubs/openpyxl/openpyxl/chart/text.pyi b/stubs/openpyxl/openpyxl/chart/text.pyi index 481dfa60c93e..b576900cc2e7 100644 --- a/stubs/openpyxl/openpyxl/chart/text.pyi +++ b/stubs/openpyxl/openpyxl/chart/text.pyi @@ -15,9 +15,7 @@ class RichText(Serialisable): p: Incomplete paragraphs: Alias __elements__: ClassVar[tuple[str, ...]] - def __init__( - self, bodyPr: RichTextProperties | None = None, lstStyle: ListStyle | None = None, p: Incomplete | None = None - ) -> None: ... + def __init__(self, bodyPr: RichTextProperties | None = None, lstStyle: ListStyle | None = None, p=None) -> None: ... class Text(Serialisable): tagname: ClassVar[str] diff --git a/stubs/openpyxl/openpyxl/chartsheet/custom.pyi b/stubs/openpyxl/openpyxl/chartsheet/custom.pyi index 70865e0cb01b..2f1066bd2db5 100644 --- a/stubs/openpyxl/openpyxl/chartsheet/custom.pyi +++ b/stubs/openpyxl/openpyxl/chartsheet/custom.pyi @@ -20,7 +20,7 @@ class CustomChartsheetView(Serialisable): @overload def __init__( self, - guid: Incomplete | None = None, + guid=None, *, scale: ConvertibleToInt, state: _VisibilityType = "visible", @@ -45,4 +45,4 @@ class CustomChartsheetViews(Serialisable): tagname: ClassVar[str] customSheetView: Incomplete __elements__: ClassVar[tuple[str, ...]] - def __init__(self, customSheetView: Incomplete | None = None) -> None: ... + def __init__(self, customSheetView=None) -> None: ... diff --git a/stubs/openpyxl/openpyxl/chartsheet/protection.pyi b/stubs/openpyxl/openpyxl/chartsheet/protection.pyi index 95266410c76f..c109380c2dd2 100644 --- a/stubs/openpyxl/openpyxl/chartsheet/protection.pyi +++ b/stubs/openpyxl/openpyxl/chartsheet/protection.pyi @@ -19,9 +19,9 @@ class ChartsheetProtection(Serialisable, _Protected): self, content: _ConvertibleToBool | None = None, objects: _ConvertibleToBool | None = None, - hashValue: Incomplete | None = None, + hashValue=None, spinCount: ConvertibleToInt | None = None, - saltValue: Incomplete | None = None, + saltValue=None, algorithmName: str | None = None, - password: Incomplete | None = None, + password=None, ) -> None: ... diff --git a/stubs/openpyxl/openpyxl/chartsheet/publish.pyi b/stubs/openpyxl/openpyxl/chartsheet/publish.pyi index c69ecce3e05d..56780bc5ca04 100644 --- a/stubs/openpyxl/openpyxl/chartsheet/publish.pyi +++ b/stubs/openpyxl/openpyxl/chartsheet/publish.pyi @@ -50,4 +50,4 @@ class WebPublishItems(Serialisable): count: Integer[Literal[True]] webPublishItem: Incomplete __elements__: ClassVar[tuple[str, ...]] - def __init__(self, count: ConvertibleToInt | None = None, webPublishItem: Incomplete | None = None) -> None: ... + def __init__(self, count: ConvertibleToInt | None = None, webPublishItem=None) -> None: ... diff --git a/stubs/openpyxl/openpyxl/chartsheet/relation.pyi b/stubs/openpyxl/openpyxl/chartsheet/relation.pyi index d43efafa5fe0..d355d7a7b1eb 100644 --- a/stubs/openpyxl/openpyxl/chartsheet/relation.pyi +++ b/stubs/openpyxl/openpyxl/chartsheet/relation.pyi @@ -49,7 +49,7 @@ class DrawingHF(Serialisable): rightFooterFirstPage: Alias def __init__( self, - id: Incomplete | None = None, + id=None, lho: ConvertibleToInt | None = None, lhe: ConvertibleToInt | None = None, lhf: ConvertibleToInt | None = None, diff --git a/stubs/openpyxl/openpyxl/chartsheet/views.pyi b/stubs/openpyxl/openpyxl/chartsheet/views.pyi index 4cabc25d45f8..f13138f829b9 100644 --- a/stubs/openpyxl/openpyxl/chartsheet/views.pyi +++ b/stubs/openpyxl/openpyxl/chartsheet/views.pyi @@ -27,4 +27,4 @@ class ChartsheetViewList(Serialisable): sheetView: Incomplete extLst: Typed[ExtensionList, Literal[True]] __elements__: ClassVar[tuple[str, ...]] - def __init__(self, sheetView: Incomplete | None = None, extLst: Unused = None) -> None: ... + def __init__(self, sheetView=None, extLst: Unused = None) -> None: ... diff --git a/stubs/openpyxl/openpyxl/comments/comment_sheet.pyi b/stubs/openpyxl/openpyxl/comments/comment_sheet.pyi index f7069a43bd03..51799b51ce1f 100644 --- a/stubs/openpyxl/openpyxl/comments/comment_sheet.pyi +++ b/stubs/openpyxl/openpyxl/comments/comment_sheet.pyi @@ -93,7 +93,7 @@ class CommentRecord(Serialisable): self, ref: str = "", authorId: ConvertibleToInt = 0, - guid: Incomplete | None = None, + guid=None, shapeId: ConvertibleToInt | None = 0, text: Text | None = None, commentPr: Properties | None = None, @@ -113,12 +113,12 @@ class CommentSheet(Serialisable): extLst: Typed[ExtensionList, Literal[True]] mime_type: str __elements__: ClassVar[tuple[str, ...]] - def __init__(self, authors: AuthorList, commentList: Incomplete | None = None, extLst: Unused = None) -> None: ... + def __init__(self, authors: AuthorList, commentList=None, extLst: Unused = None) -> None: ... def to_tree(self) -> Element: ... # type: ignore[override] @property def comments(self) -> Generator[tuple[str, Comment], None, None]: ... @classmethod def from_comments(cls, comments): ... - def write_shapes(self, vml: Incomplete | None = None): ... + def write_shapes(self, vml=None): ... @property def path(self) -> str: ... diff --git a/stubs/openpyxl/openpyxl/drawing/colors.pyi b/stubs/openpyxl/openpyxl/drawing/colors.pyi index 8795cdd13d98..00c6a9c5d865 100644 --- a/stubs/openpyxl/openpyxl/drawing/colors.pyi +++ b/stubs/openpyxl/openpyxl/drawing/colors.pyi @@ -299,7 +299,7 @@ class SystemColor(Serialisable): def __init__( self, val: _SystemColorVal = "windowText", - lastClr: Incomplete | None = None, + lastClr=None, tint: _HasTagAndGet[ConvertibleToInt | None] | ConvertibleToInt | None = None, shade: _HasTagAndGet[ConvertibleToInt | None] | ConvertibleToInt | None = None, comp: Transform | None = None, diff --git a/stubs/openpyxl/openpyxl/drawing/fill.pyi b/stubs/openpyxl/openpyxl/drawing/fill.pyi index 17e5656f81c7..0a4a365244fd 100644 --- a/stubs/openpyxl/openpyxl/drawing/fill.pyi +++ b/stubs/openpyxl/openpyxl/drawing/fill.pyi @@ -118,9 +118,7 @@ class RelativeRect(Serialisable): right: Alias b: Incomplete bottom: Alias - def __init__( - self, l: Incomplete | None = None, t: Incomplete | None = None, r: Incomplete | None = None, b: Incomplete | None = None - ) -> None: ... + def __init__(self, l=None, t=None, r=None, b=None) -> None: ... class StretchInfoProperties(Serialisable): tagname: ClassVar[str] @@ -247,8 +245,8 @@ class Blip(Serialisable): def __init__( self, cstate: _BlipCstate | Literal["none"] | None = None, - embed: Incomplete | None = None, - link: Incomplete | None = None, + embed=None, + link=None, noGrp: _ConvertibleToBool | None = None, noSelect: _ConvertibleToBool | None = None, noRot: _ConvertibleToBool | None = None, diff --git a/stubs/openpyxl/openpyxl/drawing/geometry.pyi b/stubs/openpyxl/openpyxl/drawing/geometry.pyi index 82079d9cfc87..4e2241e94ebd 100644 --- a/stubs/openpyxl/openpyxl/drawing/geometry.pyi +++ b/stubs/openpyxl/openpyxl/drawing/geometry.pyi @@ -329,7 +329,7 @@ class Point2D(Serialisable): namespace: ClassVar[str] x: Incomplete y: Incomplete - def __init__(self, x: Incomplete | None = None, y: Incomplete | None = None) -> None: ... + def __init__(self, x=None, y=None) -> None: ... class PositiveSize2D(Serialisable): tagname: ClassVar[str] @@ -497,14 +497,12 @@ class GeomRect(Serialisable): t: Incomplete r: Incomplete b: Incomplete - def __init__( - self, l: Incomplete | None = None, t: Incomplete | None = None, r: Incomplete | None = None, b: Incomplete | None = None - ) -> None: ... + def __init__(self, l=None, t=None, r=None, b=None) -> None: ... class AdjPoint2D(Serialisable): x: Incomplete y: Incomplete - def __init__(self, x: Incomplete | None = None, y: Incomplete | None = None) -> None: ... + def __init__(self, x=None, y=None) -> None: ... class ConnectionSite(Serialisable): ang: MinMax[float, Literal[False]] diff --git a/stubs/openpyxl/openpyxl/drawing/graphic.pyi b/stubs/openpyxl/openpyxl/drawing/graphic.pyi index 675f0585cf97..38164a99b4ef 100644 --- a/stubs/openpyxl/openpyxl/drawing/graphic.pyi +++ b/stubs/openpyxl/openpyxl/drawing/graphic.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import ClassVar, Literal from openpyxl.descriptors.base import Alias, Bool, String, Typed, _ConvertibleToBool @@ -39,7 +38,7 @@ class NonVisualGraphicFrame(Serialisable): cNvPr: Typed[ExtensionList, Literal[False]] cNvGraphicFramePr: Typed[ExtensionList, Literal[False]] __elements__: ClassVar[tuple[str, ...]] - def __init__(self, cNvPr: Incomplete | None = None, cNvGraphicFramePr: Incomplete | None = None) -> None: ... + def __init__(self, cNvPr=None, cNvGraphicFramePr=None) -> None: ... class GraphicData(Serialisable): tagname: ClassVar[str] diff --git a/stubs/openpyxl/openpyxl/drawing/line.pyi b/stubs/openpyxl/openpyxl/drawing/line.pyi index 668c5c98ced4..130895608758 100644 --- a/stubs/openpyxl/openpyxl/drawing/line.pyi +++ b/stubs/openpyxl/openpyxl/drawing/line.pyi @@ -44,7 +44,7 @@ class DashStop(Serialisable): class DashStopList(Serialisable): ds: Incomplete - def __init__(self, ds: Incomplete | None = None) -> None: ... + def __init__(self, ds=None) -> None: ... class LineProperties(Serialisable): tagname: ClassVar[str] diff --git a/stubs/openpyxl/openpyxl/drawing/picture.pyi b/stubs/openpyxl/openpyxl/drawing/picture.pyi index 74a29558685d..4a3de4c9ea65 100644 --- a/stubs/openpyxl/openpyxl/drawing/picture.pyi +++ b/stubs/openpyxl/openpyxl/drawing/picture.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, Unused +from _typeshed import Unused from typing import ClassVar, Literal from openpyxl.chart.shapes import GraphicalProperties @@ -47,9 +47,7 @@ class NonVisualPictureProperties(Serialisable): picLocks: Typed[PictureLocking, Literal[True]] extLst: Typed[ExtensionList, Literal[True]] __elements__: ClassVar[tuple[str, ...]] - def __init__( - self, preferRelativeResize: _ConvertibleToBool | None = None, picLocks: Incomplete | None = None, extLst: Unused = None - ) -> None: ... + def __init__(self, preferRelativeResize: _ConvertibleToBool | None = None, picLocks=None, extLst: Unused = None) -> None: ... class PictureNonVisual(Serialisable): tagname: ClassVar[str] diff --git a/stubs/openpyxl/openpyxl/drawing/properties.pyi b/stubs/openpyxl/openpyxl/drawing/properties.pyi index 0d9c33726daf..0444a5321293 100644 --- a/stubs/openpyxl/openpyxl/drawing/properties.pyi +++ b/stubs/openpyxl/openpyxl/drawing/properties.pyi @@ -63,7 +63,7 @@ class NonVisualGroupDrawingShapeProps(Serialisable): grpSpLocks: Typed[GroupLocking, Literal[True]] extLst: Typed[ExtensionList, Literal[True]] __elements__: ClassVar[tuple[str, ...]] - def __init__(self, grpSpLocks: Incomplete | None = None, extLst: Unused = None) -> None: ... + def __init__(self, grpSpLocks=None, extLst: Unused = None) -> None: ... class NonVisualDrawingShapeProps(Serialisable): tagname: ClassVar[str] @@ -72,9 +72,7 @@ class NonVisualDrawingShapeProps(Serialisable): extLst: Typed[ExtensionList, Literal[True]] __elements__: ClassVar[tuple[str, ...]] txBox: Incomplete - def __init__( - self, spLocks: Incomplete | None = None, txBox: _ConvertibleToBool | None = None, extLst: Unused = None - ) -> None: ... + def __init__(self, spLocks=None, txBox: _ConvertibleToBool | None = None, extLst: Unused = None) -> None: ... class NonVisualDrawingProps(Serialisable): tagname: ClassVar[str] @@ -91,7 +89,7 @@ class NonVisualDrawingProps(Serialisable): @overload def __init__( self, - id: Incomplete | None = None, + id=None, *, name: str, descr: str | None = None, diff --git a/stubs/openpyxl/openpyxl/drawing/spreadsheet_drawing.pyi b/stubs/openpyxl/openpyxl/drawing/spreadsheet_drawing.pyi index 17a8d36ad9e7..df2388c58f95 100644 --- a/stubs/openpyxl/openpyxl/drawing/spreadsheet_drawing.pyi +++ b/stubs/openpyxl/openpyxl/drawing/spreadsheet_drawing.pyi @@ -49,7 +49,7 @@ class _AnchorBase(Serialisable): graphicFrame: GraphicFrame | None = None, cxnSp: Shape | None = None, pic: PictureFrame | None = None, - contentPart: Incomplete | None = None, + contentPart=None, ) -> None: ... class AbsoluteAnchor(_AnchorBase): diff --git a/stubs/openpyxl/openpyxl/drawing/text.pyi b/stubs/openpyxl/openpyxl/drawing/text.pyi index 02c18ff83617..b5ed491d7cc4 100644 --- a/stubs/openpyxl/openpyxl/drawing/text.pyi +++ b/stubs/openpyxl/openpyxl/drawing/text.pyi @@ -161,7 +161,7 @@ class Hyperlink(Serialisable): endSnd: _ConvertibleToBool | None = None, snd: EmbeddedWAVAudioFile | None = None, extLst: ExtensionList | None = None, - id: Incomplete | None = None, + id=None, ) -> None: ... class Font(Serialisable): @@ -172,11 +172,7 @@ class Font(Serialisable): pitchFamily: MinMax[float, Literal[True]] charset: Integer[Literal[True]] def __init__( - self, - typeface: str, - panose: Incomplete | None = None, - pitchFamily: ConvertibleToFloat | None = None, - charset: ConvertibleToInt | None = None, + self, typeface: str, panose=None, pitchFamily: ConvertibleToFloat | None = None, charset: ConvertibleToInt | None = None ) -> None: ... class CharacterProperties(Serialisable): @@ -276,7 +272,7 @@ class TabStop(Serialisable): class TabStopList(Serialisable): tab: Typed[TabStop, Literal[True]] - def __init__(self, tab: Incomplete | None = None) -> None: ... + def __init__(self, tab=None) -> None: ... class Spacing(Serialisable): spcPct: NestedInteger[Literal[True]] @@ -435,7 +431,7 @@ class Paragraph(Serialisable): self, pPr: ParagraphProperties | None = None, endParaRPr: CharacterProperties | None = None, - r: Incomplete | None = None, + r=None, br: LineBreak | None = None, fld: TextField | None = None, ) -> None: ... @@ -447,7 +443,7 @@ class GeomGuide(Serialisable): class GeomGuideList(Serialisable): gd: Incomplete - def __init__(self, gd: Incomplete | None = None) -> None: ... + def __init__(self, gd=None) -> None: ... class PresetTextShape(Serialisable): prst: Typed[Set[_PresetTextShapePrst], Literal[False]] diff --git a/stubs/openpyxl/openpyxl/formatting/rule.pyi b/stubs/openpyxl/openpyxl/formatting/rule.pyi index 9b04c503e6b4..cd5efaae934d 100644 --- a/stubs/openpyxl/openpyxl/formatting/rule.pyi +++ b/stubs/openpyxl/openpyxl/formatting/rule.pyi @@ -79,7 +79,7 @@ class FormatObject(Serialisable): extLst: Typed[ExtensionList, Literal[True]] __elements__: ClassVar[tuple[str, ...]] def __init__( - self, type: _FormatObjectType, val: Incomplete | None = None, gte: _ConvertibleToBool | None = None, extLst: Unused = None + self, type: _FormatObjectType, val=None, gte: _ConvertibleToBool | None = None, extLst: Unused = None ) -> None: ... class RuleType(Serialisable): @@ -99,7 +99,7 @@ class IconSet(RuleType): showValue: _ConvertibleToBool | None = None, percent: _ConvertibleToBool | None = None, reverse: _ConvertibleToBool | None = None, - cfvo: Incomplete | None = None, + cfvo=None, ) -> None: ... class DataBar(RuleType): @@ -116,7 +116,7 @@ class DataBar(RuleType): minLength: ConvertibleToInt | None = None, maxLength: ConvertibleToInt | None = None, showValue: _ConvertibleToBool | None = None, - cfvo: Incomplete | None = None, + cfvo=None, *, color: str | Color, ) -> None: ... @@ -135,7 +135,7 @@ class ColorScale(RuleType): color: Incomplete __elements__: ClassVar[tuple[str, ...]] cfvo: Incomplete - def __init__(self, cfvo: Incomplete | None = None, color: Incomplete | None = None) -> None: ... + def __init__(self, cfvo=None, color=None) -> None: ... class Rule(Serialisable): tagname: ClassVar[str] @@ -184,46 +184,19 @@ class Rule(Serialisable): ) -> None: ... def ColorScaleRule( - start_type: Incomplete | None = None, - start_value: Incomplete | None = None, - start_color: Incomplete | None = None, - mid_type: Incomplete | None = None, - mid_value: Incomplete | None = None, - mid_color: Incomplete | None = None, - end_type: Incomplete | None = None, - end_value: Incomplete | None = None, - end_color: Incomplete | None = None, -): ... -def FormulaRule( - formula: Incomplete | None = None, - stopIfTrue: Incomplete | None = None, - font: Incomplete | None = None, - border: Incomplete | None = None, - fill: Incomplete | None = None, -): ... -def CellIsRule( - operator: Incomplete | None = None, - formula: Incomplete | None = None, - stopIfTrue: Incomplete | None = None, - font: Incomplete | None = None, - border: Incomplete | None = None, - fill: Incomplete | None = None, -): ... -def IconSetRule( - icon_style: Incomplete | None = None, - type: Incomplete | None = None, - values: Incomplete | None = None, - showValue: Incomplete | None = None, - percent: Incomplete | None = None, - reverse: Incomplete | None = None, + start_type=None, + start_value=None, + start_color=None, + mid_type=None, + mid_value=None, + mid_color=None, + end_type=None, + end_value=None, + end_color=None, ): ... +def FormulaRule(formula=None, stopIfTrue=None, font=None, border=None, fill=None): ... +def CellIsRule(operator=None, formula=None, stopIfTrue=None, font=None, border=None, fill=None): ... +def IconSetRule(icon_style=None, type=None, values=None, showValue=None, percent=None, reverse=None): ... def DataBarRule( - start_type: Incomplete | None = None, - start_value: Incomplete | None = None, - end_type: Incomplete | None = None, - end_value: Incomplete | None = None, - color: Incomplete | None = None, - showValue: Incomplete | None = None, - minLength: Incomplete | None = None, - maxLength: Incomplete | None = None, + start_type=None, start_value=None, end_type=None, end_value=None, color=None, showValue=None, minLength=None, maxLength=None ): ... diff --git a/stubs/openpyxl/openpyxl/formula/translate.pyi b/stubs/openpyxl/openpyxl/formula/translate.pyi index 3f03b328b884..212f0bedd006 100644 --- a/stubs/openpyxl/openpyxl/formula/translate.pyi +++ b/stubs/openpyxl/openpyxl/formula/translate.pyi @@ -19,4 +19,4 @@ class Translator: def strip_ws_name(range_str): ... @classmethod def translate_range(cls, range_str, rdelta, cdelta): ... - def translate_formula(self, dest: Incomplete | None = None, row_delta: int = 0, col_delta: int = 0): ... + def translate_formula(self, dest=None, row_delta: int = 0, col_delta: int = 0): ... diff --git a/stubs/openpyxl/openpyxl/packaging/core.pyi b/stubs/openpyxl/openpyxl/packaging/core.pyi index 0106e8cb9222..9111e2bb6387 100644 --- a/stubs/openpyxl/openpyxl/packaging/core.pyi +++ b/stubs/openpyxl/openpyxl/packaging/core.pyi @@ -46,7 +46,7 @@ class DocumentProperties(Serialisable): contentStatus: object = None, keywords: object = None, lastModifiedBy: object = None, - lastPrinted: Incomplete | None = None, + lastPrinted=None, revision: object = None, version: object = None, created=None, diff --git a/stubs/openpyxl/openpyxl/packaging/workbook.pyi b/stubs/openpyxl/openpyxl/packaging/workbook.pyi index b333a3651550..3734b75e9932 100644 --- a/stubs/openpyxl/openpyxl/packaging/workbook.pyi +++ b/stubs/openpyxl/openpyxl/packaging/workbook.pyi @@ -38,18 +38,14 @@ class ChildSheet(Serialisable): state: NoneSet[_VisibilityType] id: Incomplete def __init__( - self, - name: str, - sheetId: ConvertibleToInt, - state: _VisibilityType | Literal["none"] | None = "visible", - id: Incomplete | None = None, + self, name: str, sheetId: ConvertibleToInt, state: _VisibilityType | Literal["none"] | None = "visible", id=None ) -> None: ... class PivotCache(Serialisable): tagname: ClassVar[str] cacheId: Integer[Literal[False]] id: Incomplete - def __init__(self, cacheId: ConvertibleToInt, id: Incomplete | None = None) -> None: ... + def __init__(self, cacheId: ConvertibleToInt, id=None) -> None: ... class WorkbookPackage(Serialisable): tagname: ClassVar[str] diff --git a/stubs/openpyxl/openpyxl/pivot/cache.pyi b/stubs/openpyxl/openpyxl/pivot/cache.pyi index bd8c5f6ca837..d156091b67a9 100644 --- a/stubs/openpyxl/openpyxl/pivot/cache.pyi +++ b/stubs/openpyxl/openpyxl/pivot/cache.pyi @@ -71,13 +71,9 @@ class CalculatedItem(Serialisable): extLst: Typed[ExtensionList, Literal[True]] __elements__: ClassVar[tuple[str, ...]] @overload - def __init__( - self, field: ConvertibleToInt | None = None, *, formula: str, pivotArea: PivotArea, extLst: Incomplete | None = None - ) -> None: ... + def __init__(self, field: ConvertibleToInt | None = None, *, formula: str, pivotArea: PivotArea, extLst=None) -> None: ... @overload - def __init__( - self, field: ConvertibleToInt | None, formula: str, pivotArea: PivotArea, extLst: Incomplete | None = None - ) -> None: ... + def __init__(self, field: ConvertibleToInt | None, formula: str, pivotArea: PivotArea, extLst=None) -> None: ... class ServerFormat(Serialisable): tagname: ClassVar[str] @@ -107,7 +103,7 @@ class OLAPSet(Serialisable): count: ConvertibleToInt, maxRank: ConvertibleToInt, setDefinition: str, - sortType: Incomplete | None = None, + sortType=None, queryFailed: _ConvertibleToBool = None, tpls: TupleList | None = None, sortByTuple: TupleList | None = None, @@ -315,7 +311,7 @@ class GroupItems(Serialisable): d: Incomplete __elements__: ClassVar[tuple[str, ...]] __attrs__: ClassVar[tuple[str, ...]] - def __init__(self, count: Incomplete | None = None, m=(), n=(), b=(), e=(), s=(), d=()) -> None: ... + def __init__(self, count=None, m=(), n=(), b=(), e=(), s=(), d=()) -> None: ... @property def count(self) -> int: ... @@ -607,7 +603,7 @@ class CacheDefinition(Serialisable): measureGroups=(), maps=(), extLst: ExtensionList | None = None, - id: Incomplete | None = None, + id=None, ) -> None: ... @overload def __init__( @@ -640,7 +636,7 @@ class CacheDefinition(Serialisable): measureGroups=(), maps=(), extLst: ExtensionList | None = None, - id: Incomplete | None = None, + id=None, ) -> None: ... def to_tree(self) -> Element: ... # type: ignore[override] @property diff --git a/stubs/openpyxl/openpyxl/pivot/fields.pyi b/stubs/openpyxl/openpyxl/pivot/fields.pyi index a35b43114fb5..15b8be17efbd 100644 --- a/stubs/openpyxl/openpyxl/pivot/fields.pyi +++ b/stubs/openpyxl/openpyxl/pivot/fields.pyi @@ -50,8 +50,8 @@ class Missing(Serialisable): c: str | None = None, cp: ConvertibleToInt | None = None, _in: ConvertibleToInt | None = None, - bc: Incomplete | None = None, - fc: Incomplete | None = None, + bc=None, + fc=None, i: _ConvertibleToBool | None = None, un: _ConvertibleToBool | None = None, st: _ConvertibleToBool | None = None, @@ -87,8 +87,8 @@ class Number(Serialisable): c: str | None = None, cp: ConvertibleToInt | None = None, _in: ConvertibleToInt | None = None, - bc: Incomplete | None = None, - fc: Incomplete | None = None, + bc=None, + fc=None, i: _ConvertibleToBool | None = None, un: _ConvertibleToBool | None = None, st: _ConvertibleToBool | None = None, @@ -105,8 +105,8 @@ class Number(Serialisable): c: str | None = None, cp: ConvertibleToInt | None = None, _in: ConvertibleToInt | None = None, - bc: Incomplete | None = None, - fc: Incomplete | None = None, + bc=None, + fc=None, i: _ConvertibleToBool | None = None, un: _ConvertibleToBool | None = None, st: _ConvertibleToBool | None = None, @@ -142,8 +142,8 @@ class Error(Serialisable): c: str | None = None, cp: ConvertibleToInt | None = None, _in: ConvertibleToInt | None = None, - bc: Incomplete | None = None, - fc: Incomplete | None = None, + bc=None, + fc=None, i: _ConvertibleToBool | None = None, un: _ConvertibleToBool | None = None, st: _ConvertibleToBool | None = None, @@ -160,8 +160,8 @@ class Error(Serialisable): c: str | None = None, cp: ConvertibleToInt | None = None, _in: ConvertibleToInt | None = None, - bc: Incomplete | None = None, - fc: Incomplete | None = None, + bc=None, + fc=None, i: _ConvertibleToBool | None = None, un: _ConvertibleToBool | None = None, st: _ConvertibleToBool | None = None, @@ -208,14 +208,14 @@ class Text(Serialisable): self, tpls=(), x=(), - v: Incomplete | None = None, + v=None, u: _ConvertibleToBool | None = None, f: _ConvertibleToBool | None = None, - c: Incomplete | None = None, + c=None, cp: ConvertibleToInt | None = None, _in: ConvertibleToInt | None = None, - bc: Incomplete | None = None, - fc: Incomplete | None = None, + bc=None, + fc=None, i: _ConvertibleToBool | None = None, un: _ConvertibleToBool | None = None, st: _ConvertibleToBool | None = None, diff --git a/stubs/openpyxl/openpyxl/pivot/record.pyi b/stubs/openpyxl/openpyxl/pivot/record.pyi index 3c1429e962ca..219fc70261c6 100644 --- a/stubs/openpyxl/openpyxl/pivot/record.pyi +++ b/stubs/openpyxl/openpyxl/pivot/record.pyi @@ -15,17 +15,7 @@ class Record(Serialisable): s: Incomplete d: Incomplete x: Incomplete - def __init__( - self, - _fields=(), - m: Incomplete | None = None, - n: Incomplete | None = None, - b: Incomplete | None = None, - e: Incomplete | None = None, - s: Incomplete | None = None, - d: Incomplete | None = None, - x: Incomplete | None = None, - ) -> None: ... + def __init__(self, _fields=(), m=None, n=None, b=None, e=None, s=None, d=None, x=None) -> None: ... class RecordList(Serialisable): mime_type: str diff --git a/stubs/openpyxl/openpyxl/pivot/table.pyi b/stubs/openpyxl/openpyxl/pivot/table.pyi index 0a3009f6cd2e..17bf54d48e43 100644 --- a/stubs/openpyxl/openpyxl/pivot/table.pyi +++ b/stubs/openpyxl/openpyxl/pivot/table.pyi @@ -116,7 +116,7 @@ class ColHierarchiesUsage(Serialisable): colHierarchyUsage: Incomplete __elements__: ClassVar[tuple[str, ...]] __attrs__: ClassVar[tuple[str, ...]] - def __init__(self, count: Incomplete | None = None, colHierarchyUsage=()) -> None: ... + def __init__(self, count=None, colHierarchyUsage=()) -> None: ... @property def count(self) -> int: ... @@ -125,7 +125,7 @@ class RowHierarchiesUsage(Serialisable): rowHierarchyUsage: Incomplete __elements__: ClassVar[tuple[str, ...]] __attrs__: ClassVar[tuple[str, ...]] - def __init__(self, count: Incomplete | None = None, rowHierarchyUsage=()) -> None: ... + def __init__(self, count=None, rowHierarchyUsage=()) -> None: ... @property def count(self) -> int: ... @@ -210,7 +210,7 @@ class MemberList(Serialisable): level: Integer[Literal[True]] member: Incomplete __elements__: ClassVar[tuple[str, ...]] - def __init__(self, count: Incomplete | None = None, level: ConvertibleToInt | None = None, member=()) -> None: ... + def __init__(self, count=None, level: ConvertibleToInt | None = None, member=()) -> None: ... @property def count(self) -> int: ... @@ -859,7 +859,7 @@ class TableDefinition(Serialisable): rowHierarchiesUsage: RowHierarchiesUsage | None = None, colHierarchiesUsage: ColHierarchiesUsage | None = None, extLst: ExtensionList | None = None, - id: Incomplete | None = None, + id=None, ) -> None: ... @overload def __init__( @@ -949,7 +949,7 @@ class TableDefinition(Serialisable): rowHierarchiesUsage: RowHierarchiesUsage | None = None, colHierarchiesUsage: ColHierarchiesUsage | None = None, extLst: ExtensionList | None = None, - id: Incomplete | None = None, + id=None, ) -> None: ... def to_tree(self) -> Element: ... # type: ignore[override] @property diff --git a/stubs/openpyxl/openpyxl/styles/alignment.pyi b/stubs/openpyxl/openpyxl/styles/alignment.pyi index 6bad3b07174a..f6ec12d50bf3 100644 --- a/stubs/openpyxl/openpyxl/styles/alignment.pyi +++ b/stubs/openpyxl/openpyxl/styles/alignment.pyi @@ -1,4 +1,4 @@ -from _typeshed import ConvertibleToFloat, Incomplete +from _typeshed import ConvertibleToFloat from collections.abc import Iterator from typing import ClassVar, Final, Literal from typing_extensions import TypeAlias @@ -30,8 +30,8 @@ class Alignment(Serialisable): readingOrder: Min[float, Literal[False]] def __init__( self, - horizontal: Incomplete | None = None, - vertical: Incomplete | None = None, + horizontal=None, + vertical=None, textRotation: int = 0, wrapText: _ConvertibleToBool | None = None, shrinkToFit: _ConvertibleToBool | None = None, @@ -39,9 +39,9 @@ class Alignment(Serialisable): relativeIndent: ConvertibleToFloat = 0, justifyLastLine: _ConvertibleToBool | None = None, readingOrder: ConvertibleToFloat = 0, - text_rotation: Incomplete | None = None, - wrap_text: Incomplete | None = None, - shrink_to_fit: Incomplete | None = None, - mergeCell: Incomplete | None = None, + text_rotation=None, + wrap_text=None, + shrink_to_fit=None, + mergeCell=None, ) -> None: ... def __iter__(self) -> Iterator[tuple[str, str]]: ... diff --git a/stubs/openpyxl/openpyxl/styles/borders.pyi b/stubs/openpyxl/openpyxl/styles/borders.pyi index c54e2e55d8e3..4c75f3e5ca25 100644 --- a/stubs/openpyxl/openpyxl/styles/borders.pyi +++ b/stubs/openpyxl/openpyxl/styles/borders.pyi @@ -43,10 +43,7 @@ class Side(Serialisable): style: NoneSet[_SideStyle] border_style: Alias def __init__( - self, - style: _SideStyle | Literal["none"] | None = None, - color: str | Color | None = None, - border_style: Incomplete | None = None, + self, style: _SideStyle | Literal["none"] | None = None, color: str | Color | None = None, border_style=None ) -> None: ... class Border(Serialisable): @@ -72,7 +69,7 @@ class Border(Serialisable): top: Side | None = None, bottom: Side | None = None, diagonal: Side | None = None, - diagonal_direction: Incomplete | None = None, + diagonal_direction=None, vertical: Side | None = None, horizontal: Side | None = None, diagonalUp: _ConvertibleToBool = False, diff --git a/stubs/openpyxl/openpyxl/styles/named_styles.pyi b/stubs/openpyxl/openpyxl/styles/named_styles.pyi index 157ad8864db4..13af11fa42d8 100644 --- a/stubs/openpyxl/openpyxl/styles/named_styles.pyi +++ b/stubs/openpyxl/openpyxl/styles/named_styles.pyi @@ -31,7 +31,7 @@ class NamedStyle(Serialisable): fill: Fill | None = None, border: Border | None = None, alignment: Alignment | None = None, - number_format: Incomplete | None = None, + number_format=None, protection: Protection | None = None, builtinId: ConvertibleToInt | None = None, hidden: _ConvertibleToBool | None = False, diff --git a/stubs/openpyxl/openpyxl/workbook/defined_name.pyi b/stubs/openpyxl/openpyxl/workbook/defined_name.pyi index 4c456d18902a..aeda5c7e8fc1 100644 --- a/stubs/openpyxl/openpyxl/workbook/defined_name.pyi +++ b/stubs/openpyxl/openpyxl/workbook/defined_name.pyi @@ -48,7 +48,7 @@ class DefinedName(Serialisable): shortcutKey: str | None = None, publishToServer: _ConvertibleToBool | None = None, workbookParameter: _ConvertibleToBool | None = None, - attr_text: Incomplete | None = None, + attr_text=None, ) -> None: ... @property def type(self) -> _TokenTypesNotOperand | _TokenOperandSubtypes: ... diff --git a/stubs/openpyxl/openpyxl/workbook/external_link/external.pyi b/stubs/openpyxl/openpyxl/workbook/external_link/external.pyi index cc7e5ceaf3d3..7e0e72060e2d 100644 --- a/stubs/openpyxl/openpyxl/workbook/external_link/external.pyi +++ b/stubs/openpyxl/openpyxl/workbook/external_link/external.pyi @@ -24,7 +24,7 @@ class ExternalRow(Serialisable): r: Integer[Literal[False]] cell: Incomplete __elements__: ClassVar[tuple[str, ...]] - def __init__(self, r: ConvertibleToInt, cell: Incomplete | None = None) -> None: ... + def __init__(self, r: ConvertibleToInt, cell=None) -> None: ... class ExternalSheetData(Serialisable): sheetId: Integer[Literal[False]] @@ -36,7 +36,7 @@ class ExternalSheetData(Serialisable): class ExternalSheetDataSet(Serialisable): sheetData: Incomplete __elements__: ClassVar[tuple[str, ...]] - def __init__(self, sheetData: Incomplete | None = None) -> None: ... + def __init__(self, sheetData=None) -> None: ... class ExternalSheetNames(Serialisable): sheetName: Incomplete @@ -62,7 +62,7 @@ class ExternalBook(Serialisable): sheetNames: ExternalSheetNames | None = None, definedNames=(), sheetDataSet: ExternalSheetDataSet | None = None, - id: Incomplete | None = None, + id=None, ) -> None: ... class ExternalLink(Serialisable): diff --git a/stubs/openpyxl/openpyxl/workbook/properties.pyi b/stubs/openpyxl/openpyxl/workbook/properties.pyi index ccc400f8f7ec..f95fd2be4505 100644 --- a/stubs/openpyxl/openpyxl/workbook/properties.pyi +++ b/stubs/openpyxl/openpyxl/workbook/properties.pyi @@ -99,5 +99,5 @@ class FileVersion(Serialisable): lastEdited: str | None = None, lowestEdited: str | None = None, rupBuild: str | None = None, - codeName: Incomplete | None = None, + codeName=None, ) -> None: ... diff --git a/stubs/openpyxl/openpyxl/workbook/protection.pyi b/stubs/openpyxl/openpyxl/workbook/protection.pyi index 81bf5b4ab92d..f89cdbe8e645 100644 --- a/stubs/openpyxl/openpyxl/workbook/protection.pyi +++ b/stubs/openpyxl/openpyxl/workbook/protection.pyi @@ -30,20 +30,20 @@ class WorkbookProtection(Serialisable): __attrs__: ClassVar[tuple[str, ...]] def __init__( self, - workbookPassword: Incomplete | None = None, + workbookPassword=None, workbookPasswordCharacterSet: str | None = None, - revisionsPassword: Incomplete | None = None, + revisionsPassword=None, revisionsPasswordCharacterSet: str | None = None, lockStructure: _ConvertibleToBool | None = None, lockWindows: _ConvertibleToBool | None = None, lockRevision: _ConvertibleToBool | None = None, revisionsAlgorithmName: str | None = None, - revisionsHashValue: Incomplete | None = None, - revisionsSaltValue: Incomplete | None = None, + revisionsHashValue=None, + revisionsSaltValue=None, revisionsSpinCount: ConvertibleToInt | None = None, workbookAlgorithmName: str | None = None, - workbookHashValue: Incomplete | None = None, - workbookSaltValue: Incomplete | None = None, + workbookHashValue=None, + workbookSaltValue=None, workbookSpinCount: ConvertibleToInt | None = None, ) -> None: ... @overload @@ -84,9 +84,9 @@ class FileSharing(Serialisable): self, readOnlyRecommended: _ConvertibleToBool | None = None, userName: str | None = None, - reservationPassword: Incomplete | None = None, + reservationPassword=None, algorithmName: str | None = None, - hashValue: Incomplete | None = None, - saltValue: Incomplete | None = None, + hashValue=None, + saltValue=None, spinCount: ConvertibleToInt | None = None, ) -> None: ... diff --git a/stubs/openpyxl/openpyxl/workbook/views.pyi b/stubs/openpyxl/openpyxl/workbook/views.pyi index 2850d363b0e0..9c0abeb8872f 100644 --- a/stubs/openpyxl/openpyxl/workbook/views.pyi +++ b/stubs/openpyxl/openpyxl/workbook/views.pyi @@ -77,7 +77,7 @@ class CustomWorkbookView(Serialisable): def __init__( self, name: str, - guid: Incomplete | None = None, + guid=None, autoUpdate: _ConvertibleToBool | None = None, mergeInterval: ConvertibleToInt | None = None, changesSavedWin: _ConvertibleToBool | None = None, diff --git a/stubs/openpyxl/openpyxl/worksheet/controls.pyi b/stubs/openpyxl/openpyxl/worksheet/controls.pyi index 47480d501b85..247969cdbb43 100644 --- a/stubs/openpyxl/openpyxl/worksheet/controls.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/controls.pyi @@ -41,7 +41,7 @@ class ControlProperty(Serialisable): linkedCell: str | None = None, listFillRange: str | None = None, cf: str | None = "pict", - id: Incomplete | None = None, + id=None, ) -> None: ... class Control(Serialisable): diff --git a/stubs/openpyxl/openpyxl/worksheet/datavalidation.pyi b/stubs/openpyxl/openpyxl/worksheet/datavalidation.pyi index 85f40baea56b..d26a47dc59f8 100644 --- a/stubs/openpyxl/openpyxl/worksheet/datavalidation.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/datavalidation.pyi @@ -99,7 +99,7 @@ class DataValidationList(Serialisable): disablePrompts: _ConvertibleToBool | None = None, xWindow: ConvertibleToInt | None = None, yWindow: ConvertibleToInt | None = None, - count: Incomplete | None = None, + count=None, dataValidation=(), ) -> None: ... @property diff --git a/stubs/openpyxl/openpyxl/worksheet/dimensions.pyi b/stubs/openpyxl/openpyxl/worksheet/dimensions.pyi index 03a849348df8..167dfb1c7b1f 100644 --- a/stubs/openpyxl/openpyxl/worksheet/dimensions.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/dimensions.pyi @@ -1,4 +1,4 @@ -from _typeshed import ConvertibleToFloat, ConvertibleToInt, Incomplete, Unused +from _typeshed import ConvertibleToFloat, ConvertibleToInt, Unused from collections.abc import Callable, Iterator from typing import ClassVar, Literal, TypeVar from typing_extensions import Self @@ -36,7 +36,7 @@ class Dimension(Strict, StyleableObject): collapsed: _ConvertibleToBool, worksheet: Worksheet, visible: Unused = True, - style: Incomplete | None = None, + style=None, ) -> None: ... def __iter__(self) -> Iterator[tuple[str, str]]: ... def __copy__(self) -> Self: ... @@ -54,15 +54,15 @@ class RowDimension(Dimension): index: int = 0, ht: ConvertibleToFloat | None = None, customHeight: Unused = None, - s: Incomplete | None = None, + s=None, customFormat: Unused = None, hidden: _ConvertibleToBool = None, outlineLevel: ConvertibleToInt | None = 0, outline_level: ConvertibleToInt | None = None, collapsed: _ConvertibleToBool = None, - visible: Incomplete | None = None, - height: Incomplete | None = None, - r: Incomplete | None = None, + visible=None, + height=None, + r=None, spans: Unused = None, thickBot: _ConvertibleToBool = None, thickTop: _ConvertibleToBool = None, @@ -92,7 +92,7 @@ class ColumnDimension(Dimension): outlineLevel: ConvertibleToInt | None = 0, outline_level: ConvertibleToInt | None = None, collapsed: _ConvertibleToBool = False, - style: Incomplete | None = None, + style=None, min: ConvertibleToInt | None = None, max: ConvertibleToInt | None = None, customWidth: Unused = False, diff --git a/stubs/openpyxl/openpyxl/worksheet/drawing.pyi b/stubs/openpyxl/openpyxl/worksheet/drawing.pyi index 39bd9a91f651..589c271fedea 100644 --- a/stubs/openpyxl/openpyxl/worksheet/drawing.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/drawing.pyi @@ -6,4 +6,4 @@ from openpyxl.descriptors.serialisable import Serialisable class Drawing(Serialisable): tagname: ClassVar[str] id: Incomplete - def __init__(self, id: Incomplete | None = None) -> None: ... + def __init__(self, id=None) -> None: ... diff --git a/stubs/openpyxl/openpyxl/worksheet/errors.pyi b/stubs/openpyxl/openpyxl/worksheet/errors.pyi index 41bd07af54b5..67883b448949 100644 --- a/stubs/openpyxl/openpyxl/worksheet/errors.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/errors.pyi @@ -29,7 +29,7 @@ class IgnoredError(Serialisable): calculatedColumn: Bool[Literal[True]] def __init__( self, - sqref: Incomplete | None = None, + sqref=None, evalError: _ConvertibleToBool | None = False, twoDigitTextYear: _ConvertibleToBool | None = False, numberStoredAsText: _ConvertibleToBool | None = False, diff --git a/stubs/openpyxl/openpyxl/worksheet/filters.pyi b/stubs/openpyxl/openpyxl/worksheet/filters.pyi index 4a641e818a48..530321e49d0e 100644 --- a/stubs/openpyxl/openpyxl/worksheet/filters.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/filters.pyi @@ -109,7 +109,7 @@ class SortCondition(Serialisable): iconId: Integer[Literal[True]] def __init__( self, - ref: Incomplete | None = None, + ref=None, descending: _ConvertibleToBool | None = None, sortBy: _SortConditionSortBy | Literal["none"] | None = None, customList: str | None = None, @@ -132,7 +132,7 @@ class SortState(Serialisable): columnSort: _ConvertibleToBool | None = None, caseSensitive: _ConvertibleToBool | None = None, sortMethod: _SortStateSortMethod | Literal["none"] | None = None, - ref: Incomplete | None = None, + ref=None, sortCondition=(), extLst: Unused = None, ) -> None: ... @@ -299,8 +299,8 @@ class FilterColumn(Serialisable): colorFilter: ColorFilter | None = None, iconFilter: IconFilter | None = None, extLst: Unused = None, - blank: Incomplete | None = None, - vals: Incomplete | None = None, + blank=None, + vals=None, ) -> None: ... class AutoFilter(Serialisable): @@ -310,9 +310,7 @@ class AutoFilter(Serialisable): sortState: Typed[SortState, Literal[True]] extLst: Typed[ExtensionList, Literal[True]] __elements__: ClassVar[tuple[str, ...]] - def __init__( - self, ref: Incomplete | None = None, filterColumn=(), sortState: SortState | None = None, extLst: Unused = None - ) -> None: ... + def __init__(self, ref=None, filterColumn=(), sortState: SortState | None = None, extLst: Unused = None) -> None: ... def __bool__(self) -> bool: ... def add_filter_column(self, col_id, vals, blank: bool = False) -> None: ... def add_sort_condition(self, ref, descending: bool = False) -> None: ... diff --git a/stubs/openpyxl/openpyxl/worksheet/formula.pyi b/stubs/openpyxl/openpyxl/worksheet/formula.pyi index 78b762cf5957..73e3601d9f6d 100644 --- a/stubs/openpyxl/openpyxl/worksheet/formula.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/formula.pyi @@ -20,8 +20,8 @@ class DataTableFormula: ca: bool = False, dt2D: bool = False, dtr: bool = False, - r1: Incomplete | None = None, - r2: Incomplete | None = None, + r1=None, + r2=None, del1: bool = False, del2: bool = False, **kw, @@ -33,5 +33,5 @@ class ArrayFormula: ref: Incomplete text: Incomplete | None - def __init__(self, ref, text: Incomplete | None = None) -> None: ... + def __init__(self, ref, text=None) -> None: ... def __iter__(self) -> Iterator[tuple[str, str]]: ... diff --git a/stubs/openpyxl/openpyxl/worksheet/hyperlink.pyi b/stubs/openpyxl/openpyxl/worksheet/hyperlink.pyi index 1e8c5e166fa3..f569caaae701 100644 --- a/stubs/openpyxl/openpyxl/worksheet/hyperlink.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/hyperlink.pyi @@ -20,7 +20,7 @@ class Hyperlink(Serialisable): location: str | None = None, tooltip: str | None = None, display: str | None = None, - id: Incomplete | None = None, + id=None, target: str | None = None, ) -> None: ... diff --git a/stubs/openpyxl/openpyxl/worksheet/merge.pyi b/stubs/openpyxl/openpyxl/worksheet/merge.pyi index 7faa6cfaea71..0e97147febae 100644 --- a/stubs/openpyxl/openpyxl/worksheet/merge.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/merge.pyi @@ -14,7 +14,7 @@ class MergeCell(CellRange): @property def ref(self) -> str: ... __attrs__: ClassVar[tuple[str, ...]] - def __init__(self, ref: Incomplete | None = None) -> None: ... + def __init__(self, ref=None) -> None: ... def __copy__(self): ... class MergeCells(Serialisable): diff --git a/stubs/openpyxl/openpyxl/worksheet/page.pyi b/stubs/openpyxl/openpyxl/worksheet/page.pyi index 28368f924d41..d4c75ea6b259 100644 --- a/stubs/openpyxl/openpyxl/worksheet/page.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/page.pyi @@ -34,7 +34,7 @@ class PrintPageSetup(Serialisable): id: Incomplete def __init__( self, - worksheet: Incomplete | None = None, + worksheet=None, orientation: _PrintPageSetupOrientation | Literal["none"] | None = None, paperSize: ConvertibleToInt | None = None, scale: ConvertibleToInt | None = None, @@ -42,8 +42,8 @@ class PrintPageSetup(Serialisable): fitToWidth: ConvertibleToInt | None = None, firstPageNumber: ConvertibleToInt | None = None, useFirstPageNumber: _ConvertibleToBool | None = None, - paperHeight: Incomplete | None = None, - paperWidth: Incomplete | None = None, + paperHeight=None, + paperWidth=None, pageOrder: _PrintPageSetupPageOrder | Literal["none"] | None = None, usePrinterDefaults: _ConvertibleToBool | None = None, blackAndWhite: _ConvertibleToBool | None = None, @@ -53,7 +53,7 @@ class PrintPageSetup(Serialisable): horizontalDpi: ConvertibleToInt | None = None, verticalDpi: ConvertibleToInt | None = None, copies: ConvertibleToInt | None = None, - id: Incomplete | None = None, + id=None, ) -> None: ... def __bool__(self) -> bool: ... @property diff --git a/stubs/openpyxl/openpyxl/worksheet/pagebreak.pyi b/stubs/openpyxl/openpyxl/worksheet/pagebreak.pyi index 47ff5d24e8da..b0fe838d39db 100644 --- a/stubs/openpyxl/openpyxl/worksheet/pagebreak.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/pagebreak.pyi @@ -35,7 +35,7 @@ class RowBreak(Serialisable): def count(self) -> int: ... @property def manualBreakCount(self) -> int: ... - def append(self, brk: Incomplete | None = None) -> None: ... + def append(self, brk=None) -> None: ... PageBreak = RowBreak diff --git a/stubs/openpyxl/openpyxl/worksheet/protection.pyi b/stubs/openpyxl/openpyxl/worksheet/protection.pyi index 285576f3219f..141af543cb29 100644 --- a/stubs/openpyxl/openpyxl/worksheet/protection.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/protection.pyi @@ -59,11 +59,11 @@ class SheetProtection(Serialisable, _Protected): sort: _ConvertibleToBool = True, autoFilter: _ConvertibleToBool = True, pivotTables: _ConvertibleToBool = True, - password: Incomplete | None = None, + password=None, algorithmName: str | None = None, - saltValue: Incomplete | None = None, + saltValue=None, spinCount: ConvertibleToInt | None = None, - hashValue: Incomplete | None = None, + hashValue=None, ) -> None: ... @overload def set_password(self, value: str = "", already_hashed: Literal[False] = False) -> None: ... diff --git a/stubs/openpyxl/openpyxl/worksheet/related.pyi b/stubs/openpyxl/openpyxl/worksheet/related.pyi index eb1ee7ee6584..3e31438cea64 100644 --- a/stubs/openpyxl/openpyxl/worksheet/related.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/related.pyi @@ -5,5 +5,5 @@ from openpyxl.xml.functions import Element class Related(Serialisable): id: Incomplete - def __init__(self, id: Incomplete | None = None) -> None: ... + def __init__(self, id=None) -> None: ... def to_tree(self, tagname: str | None, idx: Unused = None) -> Element: ... # type: ignore[override] diff --git a/stubs/openpyxl/openpyxl/worksheet/table.pyi b/stubs/openpyxl/openpyxl/worksheet/table.pyi index a4808c85f04e..8650bbadec1d 100644 --- a/stubs/openpyxl/openpyxl/worksheet/table.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/table.pyi @@ -67,7 +67,7 @@ class TableFormula(Serialisable): array: Bool[Literal[True]] attr_text: Incomplete text: Alias - def __init__(self, array: _ConvertibleToBool | None = None, attr_text: Incomplete | None = None) -> None: ... + def __init__(self, array: _ConvertibleToBool | None = None, attr_text=None) -> None: ... class TableColumn(Serialisable): tagname: ClassVar[str] @@ -170,8 +170,8 @@ class Table(Serialisable): def __init__( self, id: ConvertibleToInt = 1, - displayName: Incomplete | None = None, - ref: Incomplete | None = None, + displayName=None, + ref=None, name: str | None = None, comment: str | None = None, tableType: _TableTableType | Literal["none"] | None = None, @@ -218,5 +218,5 @@ class TablePartList(Serialisable): class TableList(dict[Incomplete, Incomplete]): def add(self, table) -> None: ... - def get(self, name: Incomplete | None = None, table_range: Incomplete | None = None): ... + def get(self, name=None, table_range=None): ... def items(self): ... diff --git a/stubs/openpyxl/openpyxl/worksheet/views.pyi b/stubs/openpyxl/openpyxl/worksheet/views.pyi index 6ea3c2acf1e3..72f05ffe0844 100644 --- a/stubs/openpyxl/openpyxl/worksheet/views.pyi +++ b/stubs/openpyxl/openpyxl/worksheet/views.pyi @@ -85,7 +85,7 @@ class SheetView(Serialisable): zoomScalePageLayoutView: ConvertibleToInt | None = None, zoomToFit: _ConvertibleToBool | None = None, workbookViewId: ConvertibleToInt | None = 0, - selection: Incomplete | None = None, + selection=None, pane: Pane | None = None, ) -> None: ... diff --git a/stubs/opentracing/opentracing/span.pyi b/stubs/opentracing/opentracing/span.pyi index 0bb1d18dd033..dd9bff361ef7 100644 --- a/stubs/opentracing/opentracing/span.pyi +++ b/stubs/opentracing/opentracing/span.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from types import TracebackType from typing import Any from typing_extensions import Self @@ -26,5 +25,5 @@ class Span: def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None ) -> None: ... - def log_event(self, event: Any, payload: Incomplete | None = None) -> Self: ... + def log_event(self, event: Any, payload=None) -> Self: ... def log(self, **kwargs: Any) -> Self: ... diff --git a/stubs/paramiko/paramiko/_winapi.pyi b/stubs/paramiko/paramiko/_winapi.pyi index 1577807f04c1..e2baa2db37e3 100644 --- a/stubs/paramiko/paramiko/_winapi.pyi +++ b/stubs/paramiko/paramiko/_winapi.pyi @@ -34,7 +34,7 @@ if sys.platform == "win32": pos: int filemap: Incomplete view: Incomplete - def __init__(self, name: str, length: int, security_attributes: Incomplete | None = None) -> None: ... + def __init__(self, name: str, length: int, security_attributes=None) -> None: ... def __enter__(self) -> Self: ... def seek(self, pos: int) -> None: ... def write(self, msg: bytes) -> None: ... diff --git a/stubs/passlib/passlib/context.pyi b/stubs/passlib/passlib/context.pyi index 0d6521b91bd1..c6a779aafb13 100644 --- a/stubs/passlib/passlib/context.pyi +++ b/stubs/passlib/passlib/context.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, StrOrBytesPath, SupportsItems +from _typeshed import StrOrBytesPath, SupportsItems from typing import Any from typing_extensions import Self @@ -16,14 +16,14 @@ class CryptPolicy: def has_schemes(self): ... def iter_handlers(self): ... def schemes(self, resolve: bool = False): ... - def get_handler(self, name: Incomplete | None = None, category: Incomplete | None = None, required: bool = False): ... - def get_min_verify_time(self, category: Incomplete | None = None): ... - def get_options(self, name, category: Incomplete | None = None): ... - def handler_is_deprecated(self, name, category: Incomplete | None = None): ... + def get_handler(self, name=None, category=None, required: bool = False): ... + def get_min_verify_time(self, category=None): ... + def get_options(self, name, category=None): ... + def handler_is_deprecated(self, name, category=None): ... def iter_config(self, ini: bool = False, resolve: bool = False): ... def to_dict(self, resolve: bool = False): ... def to_file(self, stream, section: str = "passlib") -> None: ... - def to_string(self, section: str = "passlib", encoding: Incomplete | None = None): ... + def to_string(self, section: str = "passlib", encoding=None): ... class CryptContext: @classmethod @@ -33,7 +33,7 @@ class CryptContext: def copy(self, **kwds: Any) -> CryptContext: ... def using(self, **kwds: Any) -> CryptContext: ... def replace(self, **kwds): ... - def __init__(self, schemes: Incomplete | None = None, policy=..., _autoload: bool = True, **kwds) -> None: ... + def __init__(self, schemes=None, policy=..., _autoload: bool = True, **kwds) -> None: ... policy: CryptPolicy def load_path( self, path: StrOrBytesPath, update: bool = False, section: str = "passlib", encoding: str = "utf-8" @@ -46,9 +46,9 @@ class CryptContext: encoding: str = "utf-8", ) -> None: ... def update(self, *args: Any, **kwds: Any) -> None: ... - def schemes(self, resolve: bool = False, category: Incomplete | None = None, unconfigured: bool = False): ... - def default_scheme(self, category: Incomplete | None = None, resolve: bool = False, unconfigured: bool = False): ... - def handler(self, scheme: Incomplete | None = None, category: Incomplete | None = None, unconfigured: bool = False): ... + def schemes(self, resolve: bool = False, category=None, unconfigured: bool = False): ... + def default_scheme(self, category=None, resolve: bool = False, unconfigured: bool = False): ... + def handler(self, scheme=None, category=None, unconfigured: bool = False): ... @property def context_kwds(self): ... def to_dict(self, resolve: bool = False) -> dict[str, Any]: ... @@ -63,12 +63,10 @@ class CryptContext: def needs_update( self, hash: str | bytes, scheme: str | None = None, category: str | None = None, secret: str | bytes | None = None ) -> bool: ... - def hash_needs_update(self, hash, scheme: Incomplete | None = None, category: Incomplete | None = None): ... - def genconfig(self, scheme: Incomplete | None = None, category: Incomplete | None = None, **settings): ... - def genhash(self, secret, config, scheme: Incomplete | None = None, category: Incomplete | None = None, **kwds): ... - def identify( - self, hash, category: Incomplete | None = None, resolve: bool = False, required: bool = False, unconfigured: bool = False - ): ... + def hash_needs_update(self, hash, scheme=None, category=None): ... + def genconfig(self, scheme=None, category=None, **settings): ... + def genhash(self, secret, config, scheme=None, category=None, **kwds): ... + def identify(self, hash, category=None, resolve: bool = False, required: bool = False, unconfigured: bool = False): ... def hash(self, secret: str | bytes, scheme: str | None = None, category: str | None = None, **kwds: Any) -> str: ... def encrypt(self, *args, **kwds): ... def verify( @@ -83,7 +81,7 @@ class CryptContext: def enable(self, hash: str | bytes) -> str: ... class LazyCryptContext(CryptContext): - def __init__(self, schemes: Incomplete | None = None, **kwds) -> None: ... + def __init__(self, schemes=None, **kwds) -> None: ... def __getattribute__(self, attr: str) -> Any: ... __all__ = ["CryptContext", "LazyCryptContext", "CryptPolicy"] diff --git a/stubs/passlib/passlib/crypto/_md4.pyi b/stubs/passlib/passlib/crypto/_md4.pyi index cbd87fb432bd..448d2abb05b5 100644 --- a/stubs/passlib/passlib/crypto/_md4.pyi +++ b/stubs/passlib/passlib/crypto/_md4.pyi @@ -1,11 +1,9 @@ -from _typeshed import Incomplete - class md4: name: str digest_size: int digestsize: int block_size: int - def __init__(self, content: Incomplete | None = None) -> None: ... + def __init__(self, content=None) -> None: ... def update(self, content) -> None: ... def copy(self): ... def digest(self): ... diff --git a/stubs/passlib/passlib/crypto/digest.pyi b/stubs/passlib/passlib/crypto/digest.pyi index 7aa493613f31..f4ffced63eaf 100644 --- a/stubs/passlib/passlib/crypto/digest.pyi +++ b/stubs/passlib/passlib/crypto/digest.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from passlib.utils import SequenceMixin @@ -24,8 +23,8 @@ class HashInfo(SequenceMixin): def supported_by_hashlib_pbkdf2(self): ... def compile_hmac(digest, key, multipart: bool = False): ... -def pbkdf1(digest, secret, salt, rounds, keylen: Incomplete | None = None): ... -def pbkdf2_hmac(digest, secret, salt, rounds, keylen: Incomplete | None = None): ... +def pbkdf1(digest, secret, salt, rounds, keylen=None): ... +def pbkdf2_hmac(digest, secret, salt, rounds, keylen=None): ... __all__ = [ # hash utils diff --git a/stubs/passlib/passlib/exc.pyi b/stubs/passlib/passlib/exc.pyi index 945a3ce0430f..f68f28f414c6 100644 --- a/stubs/passlib/passlib/exc.pyi +++ b/stubs/passlib/passlib/exc.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any class UnknownBackendError(ValueError): @@ -12,15 +11,15 @@ class PasswordValueError(ValueError): ... class PasswordSizeError(PasswordValueError): max_size: Any - def __init__(self, max_size, msg: Incomplete | None = None) -> None: ... + def __init__(self, max_size, msg=None) -> None: ... class PasswordTruncateError(PasswordSizeError): - def __init__(self, cls, msg: Incomplete | None = None) -> None: ... + def __init__(self, cls, msg=None) -> None: ... class PasslibSecurityError(RuntimeError): ... class TokenError(ValueError): - def __init__(self, msg: Incomplete | None = None, *args, **kwds) -> None: ... + def __init__(self, msg=None, *args, **kwds) -> None: ... class MalformedTokenError(TokenError): ... class InvalidTokenError(TokenError): ... @@ -32,7 +31,7 @@ class UsedTokenError(TokenError): class UnknownHashError(ValueError): value: Any message: Any - def __init__(self, message: Incomplete | None = None, value: Incomplete | None = None) -> None: ... + def __init__(self, message=None, value=None) -> None: ... class PasslibWarning(UserWarning): ... class PasslibConfigWarning(PasslibWarning): ... @@ -43,11 +42,11 @@ class PasslibSecurityWarning(PasslibWarning): ... def type_name(value): ... def ExpectedTypeError(value, expected, param): ... def ExpectedStringError(value, param): ... -def MissingDigestError(handler: Incomplete | None = None): ... -def NullPasswordError(handler: Incomplete | None = None): ... -def InvalidHashError(handler: Incomplete | None = None): ... -def MalformedHashError(handler: Incomplete | None = None, reason: Incomplete | None = None): ... -def ZeroPaddedRoundsError(handler: Incomplete | None = None): ... +def MissingDigestError(handler=None): ... +def NullPasswordError(handler=None): ... +def InvalidHashError(handler=None): ... +def MalformedHashError(handler=None, reason=None): ... +def ZeroPaddedRoundsError(handler=None): ... def ChecksumSizeError(handler, raw: bool = False): ... ENABLE_DEBUG_ONLY_REPR: bool diff --git a/stubs/passlib/passlib/ext/django/utils.pyi b/stubs/passlib/passlib/ext/django/utils.pyi index aa67154af7c3..c97ad907a0a3 100644 --- a/stubs/passlib/passlib/ext/django/utils.pyi +++ b/stubs/passlib/passlib/ext/django/utils.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any __all__ = ["DJANGO_VERSION", "MIN_DJANGO_VERSION", "get_preset_config", "quirks"] @@ -15,7 +14,7 @@ def get_preset_config(name): ... class DjangoTranslator: context: Any - def __init__(self, context: Incomplete | None = None, **kwds) -> None: ... + def __init__(self, context=None, **kwds) -> None: ... def reset_hashers(self) -> None: ... def passlib_to_django_name(self, passlib_name): ... def passlib_to_django(self, passlib_hasher, cached: bool = True): ... @@ -29,13 +28,13 @@ class DjangoContextAdapter(DjangoTranslator): enabled: bool patched: bool log: Any - def __init__(self, context: Incomplete | None = None, get_user_category: Incomplete | None = None, **kwds) -> None: ... + def __init__(self, context=None, get_user_category=None, **kwds) -> None: ... def reset_hashers(self) -> None: ... def get_hashers(self): ... def get_hasher(self, algorithm: str = "default"): ... def identify_hasher(self, encoded): ... - def make_password(self, password, salt: Incomplete | None = None, hasher: str = "default"): ... - def check_password(self, password, encoded, setter: Incomplete | None = None, preferred: str = "default"): ... + def make_password(self, password, salt=None, hasher: str = "default"): ... + def check_password(self, password, encoded, setter=None, preferred: str = "default"): ... def user_check_password(self, user, password): ... def user_set_password(self, user, password) -> None: ... def get_user_category(self, user): ... diff --git a/stubs/passlib/passlib/handlers/argon2.pyi b/stubs/passlib/passlib/handlers/argon2.pyi index 7f24f3be3c7e..41585256b093 100644 --- a/stubs/passlib/passlib/handlers/argon2.pyi +++ b/stubs/passlib/passlib/handlers/argon2.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, ClassVar import passlib.utils.handlers as uh @@ -39,29 +38,21 @@ class _Argon2Common( # type: ignore[misc] @classmethod def using( # type: ignore[override] cls, - type: Incomplete | None = None, - memory_cost: Incomplete | None = None, - salt_len: Incomplete | None = None, - time_cost: Incomplete | None = None, - digest_size: Incomplete | None = None, - checksum_size: Incomplete | None = None, - hash_len: Incomplete | None = None, - max_threads: Incomplete | None = None, + type=None, + memory_cost=None, + salt_len=None, + time_cost=None, + digest_size=None, + checksum_size=None, + hash_len=None, + max_threads=None, **kwds, ): ... @classmethod def identify(cls, hash): ... @classmethod def from_string(cls, hash): ... - def __init__( - self, - type: Incomplete | None = None, - type_d: bool = False, - version: Incomplete | None = None, - memory_cost: Incomplete | None = None, - data: Incomplete | None = None, - **kwds, - ) -> None: ... + def __init__(self, type=None, type_d: bool = False, version=None, memory_cost=None, data=None, **kwds) -> None: ... class _NoBackend(_Argon2Common): @classmethod diff --git a/stubs/passlib/passlib/handlers/bcrypt.pyi b/stubs/passlib/passlib/handlers/bcrypt.pyi index 6117d9c8c23d..0965bfdd36e8 100644 --- a/stubs/passlib/passlib/handlers/bcrypt.pyi +++ b/stubs/passlib/passlib/handlers/bcrypt.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, ClassVar import passlib.utils.handlers as uh @@ -46,12 +45,12 @@ class bcrypt_sha256(_wrapped_bcrypt): default_ident: ClassVar[str] version: ClassVar[int] @classmethod - def using(cls, version: Incomplete | None = None, **kwds): ... # type: ignore[override] + def using(cls, version=None, **kwds): ... # type: ignore[override] prefix: Any @classmethod def identify(cls, hash): ... @classmethod def from_string(cls, hash): ... - def __init__(self, version: Incomplete | None = None, **kwds) -> None: ... + def __init__(self, version=None, **kwds) -> None: ... __all__ = ["bcrypt"] diff --git a/stubs/passlib/passlib/handlers/digests.pyi b/stubs/passlib/passlib/handlers/digests.pyi index 8353f7d9d760..09d0970b53e5 100644 --- a/stubs/passlib/passlib/handlers/digests.pyi +++ b/stubs/passlib/passlib/handlers/digests.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, ClassVar import passlib.utils.handlers as uh @@ -7,7 +6,7 @@ class HexDigestHash(uh.StaticHandler): checksum_chars: ClassVar[str] supported: ClassVar[bool] -def create_hex_hash(digest, module="passlib.handlers.digests", django_name: Incomplete | None = None, required: bool = True): ... +def create_hex_hash(digest, module="passlib.handlers.digests", django_name=None, required: bool = True): ... hex_md4: Any hex_md5: Any @@ -21,7 +20,7 @@ class htdigest(uh.MinimalHandler): setting_kwds: ClassVar[tuple[str, ...]] context_kwds: ClassVar[tuple[str, ...]] @classmethod - def hash(cls, secret, user, realm, encoding: Incomplete | None = None): ... # type: ignore[override] + def hash(cls, secret, user, realm, encoding=None): ... # type: ignore[override] @classmethod def verify(cls, secret, hash, user, realm, encoding: str = "utf-8"): ... # type: ignore[override] @classmethod @@ -29,6 +28,6 @@ class htdigest(uh.MinimalHandler): @classmethod def genconfig(cls): ... @classmethod - def genhash(cls, secret, config, user, realm, encoding: Incomplete | None = None): ... # type: ignore[override] + def genhash(cls, secret, config, user, realm, encoding=None): ... # type: ignore[override] __all__ = ["create_hex_hash", "hex_md4", "hex_md5", "hex_sha1", "hex_sha256", "hex_sha512"] diff --git a/stubs/passlib/passlib/handlers/misc.pyi b/stubs/passlib/passlib/handlers/misc.pyi index 2120f052a1c9..4e3cc4df76d7 100644 --- a/stubs/passlib/passlib/handlers/misc.pyi +++ b/stubs/passlib/passlib/handlers/misc.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, ClassVar import passlib.utils.handlers as uh @@ -19,7 +18,7 @@ class unix_disabled(DisabledHash, uh.MinimalHandler): setting_kwds: ClassVar[tuple[str, ...]] context_kwds: ClassVar[tuple[str, ...]] @classmethod - def using(cls, marker: Incomplete | None = None, **kwds): ... # type: ignore[override] + def using(cls, marker=None, **kwds): ... # type: ignore[override] @classmethod def identify(cls, hash: str | bytes) -> bool: ... @classmethod @@ -27,7 +26,7 @@ class unix_disabled(DisabledHash, uh.MinimalHandler): @classmethod def hash(cls, secret: str | bytes, **kwds) -> str: ... @classmethod - def genhash(cls, secret: str | bytes, config, marker: Incomplete | None = None): ... # type: ignore[override] + def genhash(cls, secret: str | bytes, config, marker=None): ... # type: ignore[override] @classmethod def disable(cls, hash: str | bytes | None = None) -> str: ... @classmethod @@ -41,7 +40,7 @@ class plaintext(uh.MinimalHandler): @classmethod def identify(cls, hash: str | bytes): ... @classmethod - def hash(cls, secret: str | bytes, encoding: Incomplete | None = None): ... # type: ignore[override] + def hash(cls, secret: str | bytes, encoding=None): ... # type: ignore[override] @classmethod def verify(cls, secret: str | bytes, hash: str | bytes, encoding: str | None = None): ... # type: ignore[override] @classmethod diff --git a/stubs/passlib/passlib/handlers/scram.pyi b/stubs/passlib/passlib/handlers/scram.pyi index 7c6fbd23c41a..ab7f2bf53228 100644 --- a/stubs/passlib/passlib/handlers/scram.pyi +++ b/stubs/passlib/passlib/handlers/scram.pyi @@ -23,8 +23,8 @@ class scram(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): @classmethod def from_string(cls, hash): ... @classmethod - def using(cls, default_algs: Incomplete | None = None, algs: Incomplete | None = None, **kwds): ... # type: ignore[override] - def __init__(self, algs: Incomplete | None = None, **kwds) -> None: ... + def using(cls, default_algs=None, algs=None, **kwds): ... # type: ignore[override] + def __init__(self, algs=None, **kwds) -> None: ... @classmethod def verify(cls, secret, hash, full: bool = False): ... # type: ignore[override] diff --git a/stubs/passlib/passlib/handlers/scrypt.pyi b/stubs/passlib/passlib/handlers/scrypt.pyi index 871390276c29..431ad7c9f7fc 100644 --- a/stubs/passlib/passlib/handlers/scrypt.pyi +++ b/stubs/passlib/passlib/handlers/scrypt.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import ClassVar import passlib.utils.handlers as uh @@ -18,13 +17,13 @@ class scrypt(uh.ParallelismMixin, uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum parallelism: int block_size: int @classmethod - def using(cls, block_size: Incomplete | None = None, **kwds): ... # type: ignore[override] + def using(cls, block_size=None, **kwds): ... # type: ignore[override] @classmethod def from_string(cls, hash): ... @classmethod def parse(cls, hash): ... def to_string(self): ... - def __init__(self, block_size: Incomplete | None = None, **kwds) -> None: ... + def __init__(self, block_size=None, **kwds) -> None: ... @classmethod def get_backend(cls): ... @classmethod diff --git a/stubs/passlib/passlib/handlers/windows.pyi b/stubs/passlib/passlib/handlers/windows.pyi index 165deec3d8b7..28a8fd7181ac 100644 --- a/stubs/passlib/passlib/handlers/windows.pyi +++ b/stubs/passlib/passlib/handlers/windows.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, ClassVar, Literal, overload import passlib.utils.handlers as uh @@ -9,7 +8,7 @@ class lmhash(uh.TruncateMixin, uh.HasEncodingContext, uh.StaticHandler): checksum_size: ClassVar[int] truncate_size: ClassVar[int] @classmethod - def raw(cls, secret, encoding: Incomplete | None = None): ... + def raw(cls, secret, encoding=None): ... class nthash(uh.StaticHandler): name: ClassVar[str] diff --git a/stubs/passlib/passlib/utils/decor.pyi b/stubs/passlib/passlib/utils/decor.pyi index 3104d06f7ca6..939db459430c 100644 --- a/stubs/passlib/passlib/utils/decor.pyi +++ b/stubs/passlib/passlib/utils/decor.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any class classproperty: @@ -22,24 +21,12 @@ class memoized_property: def __init__(self, func) -> None: ... def __get__(self, obj, cls): ... def clear_cache(self, obj) -> None: ... - def peek_cache(self, obj, default: Incomplete | None = None): ... + def peek_cache(self, obj, default=None): ... def deprecated_function( - msg: Incomplete | None = None, - deprecated: Incomplete | None = None, - removed: Incomplete | None = None, - updoc: bool = True, - replacement: Incomplete | None = None, - _is_method: bool = False, - func_module: Incomplete | None = None, -): ... -def deprecated_method( - msg: Incomplete | None = None, - deprecated: Incomplete | None = None, - removed: Incomplete | None = None, - updoc: bool = True, - replacement: Incomplete | None = None, + msg=None, deprecated=None, removed=None, updoc: bool = True, replacement=None, _is_method: bool = False, func_module=None ): ... +def deprecated_method(msg=None, deprecated=None, removed=None, updoc: bool = True, replacement=None): ... __all__ = [ "classproperty", diff --git a/stubs/passlib/passlib/utils/handlers.pyi b/stubs/passlib/passlib/utils/handlers.pyi index 6c76c322cb78..420a1ef06584 100644 --- a/stubs/passlib/passlib/utils/handlers.pyi +++ b/stubs/passlib/passlib/utils/handlers.pyi @@ -12,10 +12,8 @@ PADDED_B64_CHARS = PADDED_BASE64_CHARS UC_HEX_CHARS = UPPER_HEX_CHARS LC_HEX_CHARS = LOWER_HEX_CHARS -def parse_mc2(hash, prefix, sep="$", handler: Incomplete | None = None): ... -def parse_mc3( - hash, prefix, sep="$", rounds_base: int = 10, default_rounds: Incomplete | None = None, handler: Incomplete | None = None -): ... +def parse_mc2(hash, prefix, sep="$", handler=None): ... +def parse_mc3(hash, prefix, sep="$", rounds_base: int = 10, default_rounds=None, handler=None): ... def render_mc2(ident, salt, checksum, sep="$"): ... def render_mc3(ident, rounds, salt, checksum, sep="$", rounds_base: int = 10): ... @@ -68,13 +66,13 @@ class HasEncodingContext(GenericHandler): class HasUserContext(GenericHandler): user: Incomplete | None - def __init__(self, user: Incomplete | None = None, **kwds) -> None: ... + def __init__(self, user=None, **kwds) -> None: ... @classmethod - def hash(cls, secret, user: Incomplete | None = None, **context): ... + def hash(cls, secret, user=None, **context): ... @classmethod - def verify(cls, secret, hash, user: Incomplete | None = None, **context): ... + def verify(cls, secret, hash, user=None, **context): ... @classmethod - def genhash(cls, secret, config, user: Incomplete | None = None, **context): ... + def genhash(cls, secret, config, user=None, **context): ... class HasRawChecksum(GenericHandler): ... @@ -84,10 +82,8 @@ class HasManyIdents(GenericHandler): ident_aliases: ClassVar[dict[str, str] | None] ident: str # type: ignore[misc] @classmethod - def using( # type: ignore[override] - cls, default_ident: Incomplete | None = None, ident: Incomplete | None = None, **kwds - ): ... - def __init__(self, ident: Incomplete | None = None, **kwds) -> None: ... + def using(cls, default_ident=None, ident=None, **kwds): ... # type: ignore[override] + def __init__(self, ident=None, **kwds) -> None: ... class HasSalt(GenericHandler): min_salt_size: ClassVar[int] @@ -120,24 +116,24 @@ class HasRounds(GenericHandler): @classmethod def using( # type: ignore[override] cls, - min_desired_rounds: Incomplete | None = None, - max_desired_rounds: Incomplete | None = None, - default_rounds: Incomplete | None = None, - vary_rounds: Incomplete | None = None, - min_rounds: Incomplete | None = None, - max_rounds: Incomplete | None = None, - rounds: Incomplete | None = None, + min_desired_rounds=None, + max_desired_rounds=None, + default_rounds=None, + vary_rounds=None, + min_rounds=None, + max_rounds=None, + rounds=None, **kwds, ): ... - def __init__(self, rounds: Incomplete | None = None, **kwds) -> None: ... + def __init__(self, rounds=None, **kwds) -> None: ... @classmethod - def bitsize(cls, rounds: Incomplete | None = None, vary_rounds: float = 0.1, **kwds): ... + def bitsize(cls, rounds=None, vary_rounds: float = 0.1, **kwds): ... class ParallelismMixin(GenericHandler): parallelism: int @classmethod - def using(cls, parallelism: Incomplete | None = None, **kwds): ... # type: ignore[override] - def __init__(self, parallelism: Incomplete | None = None, **kwds) -> None: ... + def using(cls, parallelism=None, **kwds): ... # type: ignore[override] + def __init__(self, parallelism=None, **kwds) -> None: ... class BackendMixin(PasswordHash, metaclass=abc.ABCMeta): backends: ClassVar[tuple[str, ...] | None] @@ -156,16 +152,7 @@ class PrefixWrapper: prefix: Any orig_prefix: Any __doc__: Any - def __init__( - self, - name, - wrapped, - prefix="", - orig_prefix="", - lazy: bool = False, - doc: Incomplete | None = None, - ident: Incomplete | None = None, - ) -> None: ... + def __init__(self, name, wrapped, prefix="", orig_prefix="", lazy: bool = False, doc=None, ident=None) -> None: ... @property def wrapped(self): ... @property diff --git a/stubs/passlib/passlib/utils/pbkdf2.pyi b/stubs/passlib/passlib/utils/pbkdf2.pyi index 31f0748694d2..f64dfb4d02aa 100644 --- a/stubs/passlib/passlib/utils/pbkdf2.pyi +++ b/stubs/passlib/passlib/utils/pbkdf2.pyi @@ -1,10 +1,8 @@ -from _typeshed import Incomplete - from passlib.crypto.digest import norm_hash_name as norm_hash_name def get_prf(name): ... -def pbkdf1(secret, salt, rounds, keylen: Incomplete | None = None, hash: str = "sha1"): ... -def pbkdf2(secret, salt, rounds, keylen: Incomplete | None = None, prf: str = "hmac-sha1"): ... +def pbkdf1(secret, salt, rounds, keylen=None, hash: str = "sha1"): ... +def pbkdf2(secret, salt, rounds, keylen=None, prf: str = "hmac-sha1"): ... __all__ = [ # hash utils diff --git a/stubs/peewee/peewee.pyi b/stubs/peewee/peewee.pyi index 9aaf79ac88a1..9133731a4347 100644 --- a/stubs/peewee/peewee.pyi +++ b/stubs/peewee/peewee.pyi @@ -190,11 +190,11 @@ class Table(_HashableSource, BaseTable): # type: ignore[misc] schema: str | None = None, alias: Incomplete | None = ..., _model: Incomplete | None = ..., - _database: Incomplete | None = None, + _database=None, ) -> None: ... def clone(self): ... - def bind(self, database: Incomplete | None = None): ... - def bind_ctx(self, database: Incomplete | None = None): ... + def bind(self, database=None): ... + def bind_ctx(self, database=None): ... def select(self, *columns): ... def insert(self, insert: Incomplete | None = ..., columns: Incomplete | None = ..., **kwargs): ... def replace(self, insert: Incomplete | None = ..., columns: Incomplete | None = ..., **kwargs): ... @@ -463,7 +463,7 @@ class Case(ColumnBase): predicate: Incomplete expression_tuples: Incomplete default: Incomplete | None - def __init__(self, predicate, expression_tuples, default: Incomplete | None = None) -> None: ... + def __init__(self, predicate, expression_tuples, default=None) -> None: ... def __sql__(self, ctx): ... class NodeList(ColumnBase): @@ -517,8 +517,8 @@ class OnConflict(Node): class BaseQuery(Node): default_row_type: Incomplete - def __init__(self, _database: Incomplete | None = None, **kwargs) -> None: ... - def bind(self, database: Incomplete | None = None): ... + def __init__(self, _database=None, **kwargs) -> None: ... + def bind(self, database=None): ... def clone(self): ... def dicts(self, as_dict: bool = ...) -> Self: ... def tuples(self, as_tuple: bool = ...) -> Self: ... @@ -526,8 +526,8 @@ class BaseQuery(Node): def objects(self, constructor: Incomplete | None = ...) -> Self: ... def __sql__(self, ctx) -> None: ... def sql(self): ... - def execute(self, database: Incomplete | None = None): ... - def iterator(self, database: Incomplete | None = None): ... + def execute(self, database=None): ... + def iterator(self, database=None): ... def __iter__(self): ... def __getitem__(self, value): ... def __len__(self) -> int: ... @@ -571,20 +571,20 @@ class SelectQuery(Query): def select_from(self, *columns): ... class SelectBase(_HashableSource, Source, SelectQuery): # type: ignore[misc] - def peek(self, database: Incomplete | None = None, n: int = ...): ... - def first(self, database: Incomplete | None = None, n: int = ...): ... - def scalar(self, database: Incomplete | None = None, as_tuple: bool = ..., as_dict: bool = ...): ... - def scalars(self, database: Incomplete | None = None) -> Generator[Incomplete, None, None]: ... - def count(self, database: Incomplete | None = None, clear_limit: bool = ...): ... - def exists(self, database: Incomplete | None = None): ... - def get(self, database: Incomplete | None = None): ... + def peek(self, database=None, n: int = ...): ... + def first(self, database=None, n: int = ...): ... + def scalar(self, database=None, as_tuple: bool = ..., as_dict: bool = ...): ... + def scalars(self, database=None) -> Generator[Incomplete, None, None]: ... + def count(self, database=None, clear_limit: bool = ...): ... + def exists(self, database=None): ... + def get(self, database=None): ... class CompoundSelectQuery(SelectBase): lhs: Incomplete op: Incomplete rhs: Incomplete def __init__(self, lhs, op, rhs) -> None: ... - def exists(self, database: Incomplete | None = None): ... + def exists(self, database=None): ... def __sql__(self, ctx): ... class Select(SelectBase): @@ -811,7 +811,7 @@ class Database(_callable_context_manager): def is_closed(self) -> bool: ... def is_connection_usable(self) -> bool: ... def connection(self): ... - def cursor(self, commit: Incomplete | None = None, named_cursor: Incomplete | None = None): ... + def cursor(self, commit=None, named_cursor=None): ... def execute_sql(self, sql, params: Incomplete | None = ..., commit=...): ... def execute(self, query, commit=..., **context_options): ... def get_context_options(self): ... @@ -1495,7 +1495,7 @@ class _SortedFieldList: class SchemaManager: model: Incomplete context_options: Incomplete - def __init__(self, model, database: Incomplete | None = None, **context_options) -> None: ... + def __init__(self, model, database=None, **context_options) -> None: ... @property def database(self): ... @database.setter @@ -1546,7 +1546,7 @@ class Metadata: def __init__( self, model, - database: Incomplete | None = None, + database=None, table_name: Incomplete | None = ..., indexes: Incomplete | None = ..., primary_key: Incomplete | None = ..., @@ -1744,8 +1744,8 @@ class BaseModelSelect(_ModelQueryHelper): __sub__: Incomplete def __iter__(self): ... def prefetch(self, *subqueries): ... - def get(self, database: Incomplete | None = None): ... - def get_or_none(self, database: Incomplete | None = None): ... + def get(self, database=None): ... + def get_or_none(self, database=None): ... def group_by(self, *columns) -> Self: ... class ModelCompoundSelectQuery(BaseModelSelect, CompoundSelectQuery): # type: ignore[misc] diff --git a/stubs/pexpect/pexpect/FSM.pyi b/stubs/pexpect/pexpect/FSM.pyi index 7a4a2d3ad611..abc0cb037638 100644 --- a/stubs/pexpect/pexpect/FSM.pyi +++ b/stubs/pexpect/pexpect/FSM.pyi @@ -14,15 +14,11 @@ class FSM: next_state: Incomplete action: Incomplete memory: Incomplete - def __init__(self, initial_state, memory: Incomplete | None = None) -> None: ... + def __init__(self, initial_state, memory=None) -> None: ... def reset(self) -> None: ... - def add_transition( - self, input_symbol, state, action: Incomplete | None = None, next_state: Incomplete | None = None - ) -> None: ... - def add_transition_list( - self, list_input_symbols, state, action: Incomplete | None = None, next_state: Incomplete | None = None - ) -> None: ... - def add_transition_any(self, state, action: Incomplete | None = None, next_state: Incomplete | None = None) -> None: ... + def add_transition(self, input_symbol, state, action=None, next_state=None) -> None: ... + def add_transition_list(self, list_input_symbols, state, action=None, next_state=None) -> None: ... + def add_transition_any(self, state, action=None, next_state=None) -> None: ... def set_default_transition(self, action, next_state) -> None: ... def get_transition(self, input_symbol, state): ... def process(self, input_symbol) -> None: ... diff --git a/stubs/pexpect/pexpect/replwrap.pyi b/stubs/pexpect/pexpect/replwrap.pyi index 39f7b35d89f7..1ef0a541ff8c 100644 --- a/stubs/pexpect/pexpect/replwrap.pyi +++ b/stubs/pexpect/pexpect/replwrap.pyi @@ -17,7 +17,7 @@ class REPLWrapper: prompt_change, new_prompt="[PEXPECT_PROMPT>", continuation_prompt="[PEXPECT_PROMPT+", - extra_init_cmd: Incomplete | None = None, + extra_init_cmd=None, ) -> None: ... def set_prompt(self, orig_prompt, prompt_change) -> None: ... def run_command(self, command, timeout: float | None = -1, async_: bool = False): ... diff --git a/stubs/pika/pika/adapters/base_connection.pyi b/stubs/pika/pika/adapters/base_connection.pyi index a9dc74b92579..b8fb59831335 100644 --- a/stubs/pika/pika/adapters/base_connection.pyi +++ b/stubs/pika/pika/adapters/base_connection.pyi @@ -21,9 +21,7 @@ class BaseConnection(Connection, metaclass=abc.ABCMeta): ) -> None: ... @classmethod @abc.abstractmethod - def create_connection( - cls, connection_configs, on_done, custom_ioloop: Incomplete | None = None, workflow: Incomplete | None = None - ): ... + def create_connection(cls, connection_configs, on_done, custom_ioloop=None, workflow=None): ... @property def ioloop(self): ... diff --git a/stubs/pika/pika/adapters/blocking_connection.pyi b/stubs/pika/pika/adapters/blocking_connection.pyi index af721b7863b7..41a5dc3af5a7 100644 --- a/stubs/pika/pika/adapters/blocking_connection.pyi +++ b/stubs/pika/pika/adapters/blocking_connection.pyi @@ -13,7 +13,7 @@ from ..spec import BasicProperties LOGGER: Logger class _CallbackResult: - def __init__(self, value_class: Incomplete | None = None) -> None: ... + def __init__(self, value_class=None) -> None: ... def reset(self) -> None: ... def __bool__(self) -> bool: ... __nonzero__: Incomplete @@ -56,9 +56,7 @@ class BlockingConnection: class _OnChannelOpenedArgs(NamedTuple): channel: Incomplete - def __init__( - self, parameters: Parameters | Sequence[Parameters] | None = None, _impl_class: Incomplete | None = None - ) -> None: ... + def __init__(self, parameters: Parameters | Sequence[Parameters] | None = None, _impl_class=None) -> None: ... def __enter__(self) -> Self: ... def __exit__( self, exc_type: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None @@ -129,13 +127,7 @@ class _ConsumerInfo: on_message_callback: Incomplete alternate_event_sink: Incomplete state: Incomplete - def __init__( - self, - consumer_tag, - auto_ack, - on_message_callback: Incomplete | None = None, - alternate_event_sink: Incomplete | None = None, - ) -> None: ... + def __init__(self, consumer_tag, auto_ack, on_message_callback=None, alternate_event_sink=None) -> None: ... @property def setting_up(self): ... @property @@ -188,24 +180,13 @@ class BlockingChannel: def add_on_cancel_callback(self, callback) -> None: ... def add_on_return_callback(self, callback): ... def basic_consume( - self, - queue, - on_message_callback, - auto_ack: bool = False, - exclusive: bool = False, - consumer_tag: Incomplete | None = None, - arguments: Incomplete | None = None, + self, queue, on_message_callback, auto_ack: bool = False, exclusive: bool = False, consumer_tag=None, arguments=None ): ... def basic_cancel(self, consumer_tag): ... def start_consuming(self) -> None: ... - def stop_consuming(self, consumer_tag: Incomplete | None = None) -> None: ... + def stop_consuming(self, consumer_tag=None) -> None: ... def consume( - self, - queue, - auto_ack: bool = False, - exclusive: bool = False, - arguments: Incomplete | None = None, - inactivity_timeout: Incomplete | None = None, + self, queue, auto_ack: bool = False, exclusive: bool = False, arguments=None, inactivity_timeout=None ) -> Generator[Incomplete, None, None]: ... def get_waiting_message_count(self): ... def cancel(self): ... @@ -235,14 +216,8 @@ class BlockingChannel: arguments: _ArgumentMapping | None = None, ): ... def exchange_delete(self, exchange: str | None = None, if_unused: bool = False): ... - def exchange_bind(self, destination, source, routing_key: str = "", arguments: Incomplete | None = None): ... - def exchange_unbind( - self, - destination: Incomplete | None = None, - source: Incomplete | None = None, - routing_key: str = "", - arguments: Incomplete | None = None, - ): ... + def exchange_bind(self, destination, source, routing_key: str = "", arguments=None): ... + def exchange_unbind(self, destination=None, source=None, routing_key: str = "", arguments=None): ... def queue_declare( self, queue, @@ -250,18 +225,12 @@ class BlockingChannel: durable: bool = False, exclusive: bool = False, auto_delete: bool = False, - arguments: Incomplete | None = None, + arguments=None, ): ... def queue_delete(self, queue, if_unused: bool = False, if_empty: bool = False): ... def queue_purge(self, queue): ... - def queue_bind(self, queue, exchange, routing_key: Incomplete | None = None, arguments: Incomplete | None = None): ... - def queue_unbind( - self, - queue, - exchange: Incomplete | None = None, - routing_key: Incomplete | None = None, - arguments: Incomplete | None = None, - ): ... + def queue_bind(self, queue, exchange, routing_key=None, arguments=None): ... + def queue_unbind(self, queue, exchange=None, routing_key=None, arguments=None): ... def tx_select(self): ... def tx_commit(self): ... def tx_rollback(self): ... diff --git a/stubs/pika/pika/adapters/select_connection.pyi b/stubs/pika/pika/adapters/select_connection.pyi index 08c343e776c1..4eed5e1f351e 100644 --- a/stubs/pika/pika/adapters/select_connection.pyi +++ b/stubs/pika/pika/adapters/select_connection.pyi @@ -12,17 +12,15 @@ SELECT_TYPE: Incomplete class SelectConnection(BaseConnection): def __init__( self, - parameters: Incomplete | None = None, - on_open_callback: Incomplete | None = None, - on_open_error_callback: Incomplete | None = None, - on_close_callback: Incomplete | None = None, - custom_ioloop: Incomplete | None = None, + parameters=None, + on_open_callback=None, + on_open_error_callback=None, + on_close_callback=None, + custom_ioloop=None, internal_connection_workflow: bool = True, ) -> None: ... @classmethod - def create_connection( - cls, connection_configs, on_done, custom_ioloop: Incomplete | None = None, workflow: Incomplete | None = None - ): ... + def create_connection(cls, connection_configs, on_done, custom_ioloop=None, workflow=None): ... class _Timeout: deadline: Incomplete diff --git a/stubs/pika/pika/adapters/utils/io_services_utils.pyi b/stubs/pika/pika/adapters/utils/io_services_utils.pyi index c6f059279d02..3f99e672ee31 100644 --- a/stubs/pika/pika/adapters/utils/io_services_utils.pyi +++ b/stubs/pika/pika/adapters/utils/io_services_utils.pyi @@ -1,5 +1,4 @@ import abc -from _typeshed import Incomplete from pika.adapters.utils.nbio_interface import AbstractIOReference, AbstractStreamTransport @@ -10,9 +9,7 @@ class SocketConnectionMixin: def connect_socket(self, sock, resolved_addr, on_done): ... class StreamingConnectionMixin: - def create_streaming_connection( - self, protocol_factory, sock, on_done, ssl_context: Incomplete | None = None, server_hostname: Incomplete | None = None - ): ... + def create_streaming_connection(self, protocol_factory, sock, on_done, ssl_context=None, server_hostname=None): ... class _AsyncServiceAsyncHandle(AbstractIOReference): def __init__(self, subject) -> None: ... diff --git a/stubs/pika/pika/adapters/utils/nbio_interface.pyi b/stubs/pika/pika/adapters/utils/nbio_interface.pyi index 897e069d8cb0..14c721842d29 100644 --- a/stubs/pika/pika/adapters/utils/nbio_interface.pyi +++ b/stubs/pika/pika/adapters/utils/nbio_interface.pyi @@ -1,5 +1,4 @@ import abc -from _typeshed import Incomplete import pika.compat @@ -21,9 +20,7 @@ class AbstractIOServices(pika.compat.AbstractBase, metaclass=abc.ABCMeta): @abc.abstractmethod def connect_socket(self, sock, resolved_addr, on_done): ... @abc.abstractmethod - def create_streaming_connection( - self, protocol_factory, sock, on_done, ssl_context: Incomplete | None = None, server_hostname: Incomplete | None = None - ): ... + def create_streaming_connection(self, protocol_factory, sock, on_done, ssl_context=None, server_hostname=None): ... class AbstractFileDescriptorServices(pika.compat.AbstractBase, metaclass=abc.ABCMeta): @abc.abstractmethod diff --git a/stubs/pika/pika/adapters/utils/selector_ioloop_adapter.pyi b/stubs/pika/pika/adapters/utils/selector_ioloop_adapter.pyi index 5ecae98b6afc..91dd227fa3ed 100644 --- a/stubs/pika/pika/adapters/utils/selector_ioloop_adapter.pyi +++ b/stubs/pika/pika/adapters/utils/selector_ioloop_adapter.pyi @@ -57,7 +57,7 @@ class SelectorIOServicesAdapter( class _FileDescriptorCallbacks: reader: Incomplete writer: Incomplete - def __init__(self, reader: Incomplete | None = None, writer: Incomplete | None = None) -> None: ... + def __init__(self, reader=None, writer=None) -> None: ... class _TimerHandle(nbio_interface.AbstractTimerReference): def __init__(self, handle, loop) -> None: ... diff --git a/stubs/pika/pika/callback.pyi b/stubs/pika/pika/callback.pyi index a92b13d97830..5acaca3cb5d8 100644 --- a/stubs/pika/pika/callback.pyi +++ b/stubs/pika/pika/callback.pyi @@ -26,7 +26,7 @@ class CallbackManager: callback: Callable[[Incomplete], Incomplete], one_shot: bool = True, only_caller: object | None = None, - arguments: Incomplete | None = None, + arguments=None, ) -> tuple[str | int, str | object]: ... def clear(self) -> None: ... def cleanup(self, prefix: str | int) -> bool: ... @@ -37,6 +37,6 @@ class CallbackManager: prefix: str | int, key: str | object, callback_value: Callable[[Incomplete], Incomplete] | None = None, - arguments: Incomplete | None = None, + arguments=None, ) -> Literal[True]: ... def remove_all(self, prefix: str | int, key: str | object) -> None: ... diff --git a/stubs/pika/pika/connection.pyi b/stubs/pika/pika/connection.pyi index 590ae33f7666..689bca9363fe 100644 --- a/stubs/pika/pika/connection.pyi +++ b/stubs/pika/pika/connection.pyi @@ -171,7 +171,7 @@ class Connection(AbstractBase, metaclass=abc.ABCMeta): def channel( self, channel_number: int | None = None, on_open_callback: Callable[[Channel], object] | None = None ) -> Channel: ... - def update_secret(self, new_secret, reason, callback: Incomplete | None = None) -> None: ... + def update_secret(self, new_secret, reason, callback=None) -> None: ... def close(self, reply_code: int = 200, reply_text: str = "Normal shutdown") -> None: ... @property def is_closed(self) -> bool: ... diff --git a/stubs/pika/pika/spec.pyi b/stubs/pika/pika/spec.pyi index d5f4d9383b64..05fd5e8dcaa0 100644 --- a/stubs/pika/pika/spec.pyi +++ b/stubs/pika/pika/spec.pyi @@ -155,13 +155,7 @@ class Connection(Class): reply_text: Incomplete class_id: Incomplete method_id: Incomplete - def __init__( - self, - reply_code: Incomplete | None = None, - reply_text: _str = "", - class_id: Incomplete | None = None, - method_id: Incomplete | None = None, - ) -> None: ... + def __init__(self, reply_code=None, reply_text: _str = "", class_id=None, method_id=None) -> None: ... @property def synchronous(self) -> Literal[True]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -256,13 +250,7 @@ class Channel(Class): reply_text: Incomplete class_id: Incomplete method_id: Incomplete - def __init__( - self, - reply_code: Incomplete | None = None, - reply_text: _str = "", - class_id: Incomplete | None = None, - method_id: Incomplete | None = None, - ) -> None: ... + def __init__(self, reply_code=None, reply_text: _str = "", class_id=None, method_id=None) -> None: ... @property def synchronous(self) -> Literal[True]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -327,14 +315,14 @@ class Exchange(Class): def __init__( self, ticket: int = 0, - exchange: Incomplete | None = None, + exchange=None, type=..., passive: bool = False, durable: bool = False, auto_delete: bool = False, internal: bool = False, nowait: bool = False, - arguments: Incomplete | None = None, + arguments=None, ) -> None: ... @property def synchronous(self) -> Literal[True]: ... @@ -355,9 +343,7 @@ class Exchange(Class): exchange: Incomplete if_unused: Incomplete nowait: bool - def __init__( - self, ticket: int = 0, exchange: Incomplete | None = None, if_unused: bool = False, nowait: bool = False - ) -> None: ... + def __init__(self, ticket: int = 0, exchange=None, if_unused: bool = False, nowait: bool = False) -> None: ... @property def synchronous(self) -> Literal[True]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -380,13 +366,7 @@ class Exchange(Class): nowait: bool arguments: Incomplete | None def __init__( - self, - ticket: int = 0, - destination: Incomplete | None = None, - source: Incomplete | None = None, - routing_key: _str = "", - nowait: bool = False, - arguments: Incomplete | None = None, + self, ticket: int = 0, destination=None, source=None, routing_key: _str = "", nowait: bool = False, arguments=None ) -> None: ... @property def synchronous(self) -> Literal[True]: ... @@ -410,13 +390,7 @@ class Exchange(Class): nowait: bool arguments: Incomplete def __init__( - self, - ticket: int = 0, - destination: Incomplete | None = None, - source: Incomplete | None = None, - routing_key: _str = "", - nowait: bool = False, - arguments: Incomplete | None = None, + self, ticket: int = 0, destination=None, source=None, routing_key: _str = "", nowait: bool = False, arguments=None ) -> None: ... @property def synchronous(self) -> Literal[True]: ... @@ -453,7 +427,7 @@ class Queue(Class): exclusive: bool = False, auto_delete: bool = False, nowait: bool = False, - arguments: Incomplete | None = None, + arguments=None, ) -> None: ... @property def synchronous(self) -> Literal[True]: ... @@ -480,13 +454,7 @@ class Queue(Class): nowait: bool arguments: Incomplete def __init__( - self, - ticket: int = 0, - queue: _str = "", - exchange: Incomplete | None = None, - routing_key: _str = "", - nowait: bool = False, - arguments: Incomplete | None = None, + self, ticket: int = 0, queue: _str = "", exchange=None, routing_key: _str = "", nowait: bool = False, arguments=None ) -> None: ... @property def synchronous(self) -> Literal[True]: ... @@ -515,7 +483,7 @@ class Queue(Class): class PurgeOk(Method): INDEX: ClassVar[int] message_count: Incomplete - def __init__(self, message_count: Incomplete | None = None) -> None: ... + def __init__(self, message_count=None) -> None: ... @property def synchronous(self) -> Literal[False]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -539,7 +507,7 @@ class Queue(Class): class DeleteOk(Method): INDEX: ClassVar[int] message_count: Incomplete - def __init__(self, message_count: Incomplete | None = None) -> None: ... + def __init__(self, message_count=None) -> None: ... @property def synchronous(self) -> Literal[False]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -552,14 +520,7 @@ class Queue(Class): exchange: Incomplete routing_key: Incomplete arguments: Incomplete - def __init__( - self, - ticket: int = 0, - queue: _str = "", - exchange: Incomplete | None = None, - routing_key: _str = "", - arguments: Incomplete | None = None, - ) -> None: ... + def __init__(self, ticket: int = 0, queue: _str = "", exchange=None, routing_key: _str = "", arguments=None) -> None: ... @property def synchronous(self) -> Literal[True]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -614,7 +575,7 @@ class Basic(Class): no_ack: bool = False, exclusive: bool = False, nowait: bool = False, - arguments: Incomplete | None = None, + arguments=None, ) -> None: ... @property def synchronous(self) -> Literal[True]: ... @@ -624,7 +585,7 @@ class Basic(Class): class ConsumeOk(Method): INDEX: ClassVar[int] consumer_tag: Incomplete - def __init__(self, consumer_tag: Incomplete | None = None) -> None: ... + def __init__(self, consumer_tag=None) -> None: ... @property def synchronous(self) -> Literal[False]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -634,7 +595,7 @@ class Basic(Class): INDEX: ClassVar[int] consumer_tag: Incomplete nowait: bool - def __init__(self, consumer_tag: Incomplete | None = None, nowait: bool = False) -> None: ... + def __init__(self, consumer_tag=None, nowait: bool = False) -> None: ... @property def synchronous(self) -> Literal[True]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -643,7 +604,7 @@ class Basic(Class): class CancelOk(Method): INDEX: ClassVar[int] consumer_tag: Incomplete - def __init__(self, consumer_tag: Incomplete | None = None) -> None: ... + def __init__(self, consumer_tag=None) -> None: ... @property def synchronous(self) -> Literal[False]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -670,13 +631,7 @@ class Basic(Class): reply_text: Incomplete exchange: Incomplete routing_key: Incomplete - def __init__( - self, - reply_code: Incomplete | None = None, - reply_text: _str = "", - exchange: Incomplete | None = None, - routing_key: Incomplete | None = None, - ) -> None: ... + def __init__(self, reply_code=None, reply_text: _str = "", exchange=None, routing_key=None) -> None: ... @property def synchronous(self) -> Literal[False]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -690,12 +645,7 @@ class Basic(Class): exchange: Incomplete routing_key: Incomplete def __init__( - self, - consumer_tag: Incomplete | None = None, - delivery_tag: Incomplete | None = None, - redelivered: bool = False, - exchange: Incomplete | None = None, - routing_key: Incomplete | None = None, + self, consumer_tag=None, delivery_tag=None, redelivered: bool = False, exchange=None, routing_key=None ) -> None: ... @property def synchronous(self) -> Literal[False]: ... @@ -721,12 +671,7 @@ class Basic(Class): routing_key: Incomplete message_count: Incomplete def __init__( - self, - delivery_tag: Incomplete | None = None, - redelivered: bool = False, - exchange: Incomplete | None = None, - routing_key: Incomplete | None = None, - message_count: Incomplete | None = None, + self, delivery_tag=None, redelivered: bool = False, exchange=None, routing_key=None, message_count=None ) -> None: ... @property def synchronous(self) -> Literal[False]: ... @@ -756,7 +701,7 @@ class Basic(Class): INDEX: ClassVar[int] delivery_tag: Incomplete requeue: bool - def __init__(self, delivery_tag: Incomplete | None = None, requeue: bool = True) -> None: ... + def __init__(self, delivery_tag=None, requeue: bool = True) -> None: ... @property def synchronous(self) -> Literal[False]: ... def decode(self, encoded: bytes, offset: int = 0) -> Self: ... @@ -907,12 +852,12 @@ class BasicProperties(Properties): content_encoding: _str | None = None, headers: _ArgumentMapping | None = None, delivery_mode: DeliveryMode | Literal[1, 2] | None = None, - priority: Incomplete | None = None, + priority=None, correlation_id: _str | None = None, reply_to: _str | None = None, expiration: _str | None = None, message_id: _str | None = None, - timestamp: Incomplete | None = None, + timestamp=None, type: _str | None = None, user_id: _str | None = None, app_id: _str | None = None, diff --git a/stubs/protobuf/google/protobuf/descriptor.pyi b/stubs/protobuf/google/protobuf/descriptor.pyi index 45891fda76c5..c1c5fc33823f 100644 --- a/stubs/protobuf/google/protobuf/descriptor.pyi +++ b/stubs/protobuf/google/protobuf/descriptor.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any from .descriptor_pb2 import ( @@ -71,17 +70,17 @@ class Descriptor(_NestedDescriptorBase): nested_types: list[FieldDescriptor], enum_types: list[EnumDescriptor], extensions: list[FieldDescriptor], - options: Incomplete | None = None, - serialized_options: Incomplete | None = None, + options=None, + serialized_options=None, is_extendable: bool | None = True, - extension_ranges: Incomplete | None = None, + extension_ranges=None, oneofs: list[OneofDescriptor] | None = None, file: FileDescriptor | None = None, - serialized_start: Incomplete | None = None, - serialized_end: Incomplete | None = None, + serialized_start=None, + serialized_end=None, syntax: str | None = None, is_map_entry=False, - create_key: Incomplete | None = None, + create_key=None, ): ... def EnumValueName(self, enum, value): ... def CopyToProto(self, proto): ... @@ -264,11 +263,11 @@ class ServiceDescriptor(_NestedDescriptorBase): index: int, methods: list[MethodDescriptor], options: ServiceOptions | None = None, - serialized_options: Incomplete | None = None, + serialized_options=None, file: FileDescriptor | None = None, - serialized_start: Incomplete | None = None, - serialized_end: Incomplete | None = None, - create_key: Incomplete | None = None, + serialized_start=None, + serialized_end=None, + create_key=None, ): ... def FindMethodByName(self, name): ... def CopyToProto(self, proto): ... diff --git a/stubs/protobuf/google/protobuf/descriptor_pool.pyi b/stubs/protobuf/google/protobuf/descriptor_pool.pyi index f555c5d73e5a..bb1d19004e84 100644 --- a/stubs/protobuf/google/protobuf/descriptor_pool.pyi +++ b/stubs/protobuf/google/protobuf/descriptor_pool.pyi @@ -1,9 +1,9 @@ -from _typeshed import Incomplete, Unused +from _typeshed import Unused class DescriptorPool: - def __new__(cls, descriptor_db: Incomplete | None = None): ... + def __new__(cls, descriptor_db=None): ... def __init__( # pyright: ignore[reportInconsistentConstructor] - self, descriptor_db: Incomplete | None = None, use_deprecated_legacy_json_field_conflicts: Unused = False + self, descriptor_db=None, use_deprecated_legacy_json_field_conflicts: Unused = False ) -> None: ... def Add(self, file_desc_proto): ... def AddSerializedFile(self, serialized_file_desc_proto): ... diff --git a/stubs/protobuf/google/protobuf/internal/well_known_types.pyi b/stubs/protobuf/google/protobuf/internal/well_known_types.pyi index 5013ea53fc03..4ed2f895c762 100644 --- a/stubs/protobuf/google/protobuf/internal/well_known_types.pyi +++ b/stubs/protobuf/google/protobuf/internal/well_known_types.pyi @@ -9,7 +9,7 @@ from google.protobuf import struct_pb2 class Any: type_url: str value: Incomplete - def Pack(self, msg, type_url_prefix: str = "type.googleapis.com/", deterministic: Incomplete | None = None) -> None: ... + def Pack(self, msg, type_url_prefix: str = "type.googleapis.com/", deterministic=None) -> None: ... def Unpack(self, msg) -> bool: ... def TypeName(self) -> str: ... def Is(self, descriptor) -> bool: ... diff --git a/stubs/psutil/psutil/__init__.pyi b/stubs/psutil/psutil/__init__.pyi index f41380bb9460..9d995532571c 100644 --- a/stubs/psutil/psutil/__init__.pyi +++ b/stubs/psutil/psutil/__init__.pyi @@ -175,7 +175,7 @@ class Process: info: dict[str, Any] def oneshot(self) -> AbstractContextManager[None]: ... def as_dict( - self, attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = None, ad_value: Incomplete | None = None + self, attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = None, ad_value=None ) -> dict[str, Any]: ... def parent(self) -> Process | None: ... def parents(self) -> list[Process]: ... @@ -236,7 +236,7 @@ class Popen(Process): def pids() -> list[int]: ... def pid_exists(pid: int) -> bool: ... def process_iter( - attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = None, ad_value: Incomplete | None = None + attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = None, ad_value=None ) -> Iterator[Process]: ... def wait_procs( procs: Iterable[Process], timeout: float | None = None, callback: Callable[[Process], object] | None = None diff --git a/stubs/psutil/psutil/_common.pyi b/stubs/psutil/psutil/_common.pyi index 872a329548ff..2c3813b79c1d 100644 --- a/stubs/psutil/psutil/_common.pyi +++ b/stubs/psutil/psutil/_common.pyi @@ -1,5 +1,5 @@ import enum -from _typeshed import Incomplete, StrOrBytesPath, SupportsWrite +from _typeshed import StrOrBytesPath, SupportsWrite from collections.abc import Callable from socket import AF_INET6 as AF_INET6, AddressFamily, SocketKind from typing import Any, Literal, NamedTuple, TypeVar, overload @@ -219,7 +219,7 @@ class NoSuchProcess(Error): pid: Any name: Any msg: Any - def __init__(self, pid, name: Incomplete | None = None, msg: Incomplete | None = None) -> None: ... + def __init__(self, pid, name=None, msg=None) -> None: ... class ZombieProcess(NoSuchProcess): __module__: str @@ -227,23 +227,21 @@ class ZombieProcess(NoSuchProcess): ppid: Any name: Any msg: Any - def __init__( - self, pid, name: Incomplete | None = None, ppid: Incomplete | None = None, msg: Incomplete | None = None - ) -> None: ... + def __init__(self, pid, name=None, ppid=None, msg=None) -> None: ... class AccessDenied(Error): __module__: str pid: Any name: Any msg: Any - def __init__(self, pid: Incomplete | None = None, name: Incomplete | None = None, msg: Incomplete | None = None) -> None: ... + def __init__(self, pid=None, name=None, msg=None) -> None: ... class TimeoutExpired(Error): __module__: str seconds: Any pid: Any name: Any - def __init__(self, seconds, pid: Incomplete | None = None, name: Incomplete | None = None) -> None: ... + def __init__(self, seconds, pid=None, name=None) -> None: ... _Func = TypeVar("_Func", bound=Callable[..., Any]) @@ -269,7 +267,7 @@ class _WrapNumbers: reminder_keys: Any def __init__(self) -> None: ... def run(self, input_dict, name): ... - def cache_clear(self, name: Incomplete | None = None) -> None: ... + def cache_clear(self, name=None) -> None: ... def cache_info(self): ... def wrap_numbers(input_dict, name: str): ... diff --git a/stubs/psutil/psutil/_psposix.pyi b/stubs/psutil/psutil/_psposix.pyi index 8b157113e188..46c218915a04 100644 --- a/stubs/psutil/psutil/_psposix.pyi +++ b/stubs/psutil/psutil/_psposix.pyi @@ -1,16 +1,5 @@ -from _typeshed import Incomplete - def pid_exists(pid): ... -def wait_pid( - pid, - timeout: Incomplete | None = None, - proc_name: Incomplete | None = None, - _waitpid=..., - _timer=..., - _min=..., - _sleep=..., - _pid_exists=..., -): ... +def wait_pid(pid, timeout=None, proc_name=None, _waitpid=..., _timer=..., _min=..., _sleep=..., _pid_exists=...): ... def disk_usage(path): ... def get_terminal_map(): ... diff --git a/stubs/psutil/psutil/_pswindows.pyi b/stubs/psutil/psutil/_pswindows.pyi index f04e9e276b68..afd5f49b1a94 100644 --- a/stubs/psutil/psutil/_pswindows.pyi +++ b/stubs/psutil/psutil/_pswindows.pyi @@ -158,7 +158,7 @@ pid_exists: Any ppid_map: Any def is_permission_err(exc): ... -def convert_oserror(exc, pid: Incomplete | None = None, name: Incomplete | None = None): ... +def convert_oserror(exc, pid=None, name=None): ... def wrap_exceptions(fun): ... def retry_error_partial_copy(fun): ... @@ -177,7 +177,7 @@ class Process: def memory_maps(self) -> None: ... def kill(self): ... def send_signal(self, sig) -> None: ... - def wait(self, timeout: Incomplete | None = None): ... + def wait(self, timeout=None): ... def username(self): ... def create_time(self, fast_only: bool = False): ... def num_threads(self): ... diff --git a/stubs/psycopg2/psycopg2/_psycopg.pyi b/stubs/psycopg2/psycopg2/_psycopg.pyi index 1eac9616959a..abb744901c03 100644 --- a/stubs/psycopg2/psycopg2/_psycopg.pyi +++ b/stubs/psycopg2/psycopg2/_psycopg.pyi @@ -600,10 +600,7 @@ def get_wait_callback() -> Incomplete | None: ... def libpq_version() -> int: ... def new_array_type(values: tuple[int, ...], name: str, baseobj: _type) -> _type: ... def new_type( - values: tuple[int, ...], - name: str, - castobj: Callable[[str | bytes | None, cursor], Any] | None = None, - baseobj: Incomplete | None = None, + values: tuple[int, ...], name: str, castobj: Callable[[str | bytes | None, cursor], Any] | None = None, baseobj=None ) -> _type: ... def parse_dsn(dsn: str | bytes) -> dict[str, Any]: ... def quote_ident(ident: str | bytes, scope) -> str: ... diff --git a/stubs/psycopg2/psycopg2/extras.pyi b/stubs/psycopg2/psycopg2/extras.pyi index b3f953cdb3c9..2c0587efa00d 100644 --- a/stubs/psycopg2/psycopg2/extras.pyi +++ b/stubs/psycopg2/psycopg2/extras.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections import OrderedDict from collections.abc import Callable from typing import Any, NamedTuple, TypeVar, overload @@ -62,8 +61,8 @@ class DictConnection(_connection): class DictCursor(DictCursorBase): def __init__(self, *args, **kwargs) -> None: ... index: Any - def execute(self, query, vars: Incomplete | None = None): ... - def callproc(self, procname, vars: Incomplete | None = None): ... + def execute(self, query, vars=None): ... + def callproc(self, procname, vars=None): ... def fetchone(self) -> DictRow | None: ... # type: ignore[override] def fetchmany(self, size: int | None = None) -> list[DictRow]: ... # type: ignore[override] def fetchall(self) -> list[DictRow]: ... # type: ignore[override] @@ -76,7 +75,7 @@ class DictRow(list[Any]): def items(self): ... def keys(self): ... def values(self): ... - def get(self, x, default: Incomplete | None = None): ... + def get(self, x, default=None): ... def copy(self): ... def __contains__(self, x): ... def __reduce__(self): ... @@ -107,8 +106,8 @@ class RealDictConnection(_connection): class RealDictCursor(DictCursorBase): def __init__(self, *args, **kwargs) -> None: ... column_mapping: Any - def execute(self, query, vars: Incomplete | None = None): ... - def callproc(self, procname, vars: Incomplete | None = None): ... + def execute(self, query, vars=None): ... + def callproc(self, procname, vars=None): ... def fetchone(self) -> RealDictRow | None: ... # type: ignore[override] def fetchmany(self, size: int | None = None) -> list[RealDictRow]: ... # type: ignore[override] def fetchall(self) -> list[RealDictRow]: ... # type: ignore[override] @@ -144,9 +143,9 @@ class NamedTupleConnection(_connection): class NamedTupleCursor(_cursor): Record: Any MAX_CACHE: int - def execute(self, query, vars: Incomplete | None = None): ... + def execute(self, query, vars=None): ... def executemany(self, query, vars): ... - def callproc(self, procname, vars: Incomplete | None = None): ... + def callproc(self, procname, vars=None): ... def fetchone(self) -> NamedTuple | None: ... def fetchmany(self, size: int | None = None) -> list[NamedTuple]: ... # type: ignore[override] def fetchall(self) -> list[NamedTuple]: ... # type: ignore[override] @@ -159,8 +158,8 @@ class LoggingConnection(_connection): def cursor(self, *args, **kwargs): ... class LoggingCursor(_cursor): - def execute(self, query, vars: Incomplete | None = None): ... - def callproc(self, procname, vars: Incomplete | None = None): ... + def execute(self, query, vars=None): ... + def callproc(self, procname, vars=None): ... class MinTimeLoggingConnection(LoggingConnection): def initialize(self, logobj, mintime: int = 0) -> None: ... @@ -169,8 +168,8 @@ class MinTimeLoggingConnection(LoggingConnection): class MinTimeLoggingCursor(LoggingCursor): timestamp: Any - def execute(self, query, vars: Incomplete | None = None): ... - def callproc(self, procname, vars: Incomplete | None = None): ... + def execute(self, query, vars=None): ... + def callproc(self, procname, vars=None): ... class LogicalReplicationConnection(_replicationConnection): def __init__(self, *args, **kwargs) -> None: ... @@ -181,17 +180,15 @@ class PhysicalReplicationConnection(_replicationConnection): class StopReplication(Exception): ... class ReplicationCursor(_replicationCursor): - def create_replication_slot( - self, slot_name, slot_type: Incomplete | None = None, output_plugin: Incomplete | None = None - ) -> None: ... + def create_replication_slot(self, slot_name, slot_type=None, output_plugin=None) -> None: ... def drop_replication_slot(self, slot_name) -> None: ... def start_replication( self, - slot_name: Incomplete | None = None, - slot_type: Incomplete | None = None, + slot_name=None, + slot_type=None, start_lsn: int = 0, timeline: int = 0, - options: Incomplete | None = None, + options=None, decode: bool = False, status_interval: int = 10, ) -> None: ... @@ -205,7 +202,7 @@ class UUID_adapter: def __conform__(self, proto): ... def getquoted(self): ... -def register_uuid(oids: Incomplete | None = None, conn_or_curs: Incomplete | None = None): ... +def register_uuid(oids=None, conn_or_curs=None): ... class Inet: addr: Any @@ -214,7 +211,7 @@ class Inet: def getquoted(self): ... def __conform__(self, proto): ... -def register_inet(oid: Incomplete | None = None, conn_or_curs: Incomplete | None = None): ... +def register_inet(oid=None, conn_or_curs=None): ... def wait_select(conn) -> None: ... class HstoreAdapter: @@ -230,13 +227,7 @@ class HstoreAdapter: @classmethod def get_oids(cls, conn_or_curs): ... -def register_hstore( - conn_or_curs, - globally: bool = False, - unicode: bool = False, - oid: Incomplete | None = None, - array_oid: Incomplete | None = None, -) -> None: ... +def register_hstore(conn_or_curs, globally: bool = False, unicode: bool = False, oid=None, array_oid=None) -> None: ... class CompositeCaster: name: Any @@ -247,12 +238,12 @@ class CompositeCaster: atttypes: Any typecaster: Any array_typecaster: Any - def __init__(self, name, oid, attrs, array_oid: Incomplete | None = None, schema: Incomplete | None = None) -> None: ... + def __init__(self, name, oid, attrs, array_oid=None, schema=None) -> None: ... def parse(self, s, curs): ... def make(self, values): ... @classmethod def tokenize(cls, s): ... -def register_composite(name, conn_or_curs, globally: bool = False, factory: Incomplete | None = None): ... +def register_composite(name, conn_or_curs, globally: bool = False, factory=None): ... def execute_batch(cur, sql, argslist, page_size: int = 100) -> None: ... -def execute_values(cur, sql, argslist, template: Incomplete | None = None, page_size: int = 100, fetch: bool = False): ... +def execute_values(cur, sql, argslist, template=None, page_size: int = 100, fetch: bool = False): ... diff --git a/stubs/psycopg2/psycopg2/pool.pyi b/stubs/psycopg2/psycopg2/pool.pyi index c74257d7294d..c2a4dc47ab5a 100644 --- a/stubs/psycopg2/psycopg2/pool.pyi +++ b/stubs/psycopg2/psycopg2/pool.pyi @@ -1,4 +1,4 @@ -from _typeshed import ConvertibleToInt, Incomplete +from _typeshed import ConvertibleToInt from collections.abc import Hashable import psycopg2 @@ -21,4 +21,4 @@ class SimpleConnectionPool(AbstractConnectionPool): ... class ThreadedConnectionPool(AbstractConnectionPool): # This subclass has a default value for conn which doesn't exist # in the SimpleConnectionPool class, nor in the documentation - def putconn(self, conn: Incomplete | None = None, key: Hashable | None = None, close: bool = False) -> None: ... + def putconn(self, conn=None, key: Hashable | None = None, close: bool = False) -> None: ... diff --git a/stubs/pyasn1/pyasn1/codec/ber/decoder.pyi b/stubs/pyasn1/pyasn1/codec/ber/decoder.pyi index ded04121b894..587e25b84992 100644 --- a/stubs/pyasn1/pyasn1/codec/ber/decoder.pyi +++ b/stubs/pyasn1/pyasn1/codec/ber/decoder.pyi @@ -17,7 +17,7 @@ class AbstractPayloadDecoder: asn1Spec, tagSet: TagSet | None = None, length: int | None = None, - state: Incomplete | None = None, + state=None, decodeFun: Callable[..., Incomplete] | None = None, substrateFun: Callable[..., Incomplete] | None = None, **options, @@ -29,7 +29,7 @@ class AbstractPayloadDecoder: asn1Spec, tagSet: TagSet | None = None, length: int | None = None, - state: Incomplete | None = None, + state=None, decodeFun: Callable[..., Incomplete] | None = None, substrateFun: Callable[..., Incomplete] | None = None, **options, @@ -232,7 +232,7 @@ class ChoicePayloadDecoder(AbstractConstructedPayloadDecoder): asn1Spec, tagSet: TagSet | None = None, length: int | None = None, - state: Incomplete | None = None, + state=None, decodeFun: Callable[..., Incomplete] | None = None, substrateFun: Callable[..., Incomplete] | None = None, **options, @@ -243,7 +243,7 @@ class ChoicePayloadDecoder(AbstractConstructedPayloadDecoder): asn1Spec, tagSet: TagSet | None = None, length: int | None = None, - state: Incomplete | None = None, + state=None, decodeFun: Callable[..., Incomplete] | None = None, substrateFun: Callable[..., Incomplete] | None = None, **options, diff --git a/stubs/pyasn1/pyasn1/codec/ber/encoder.pyi b/stubs/pyasn1/pyasn1/codec/ber/encoder.pyi index 04fa55b688c6..58a9193b1a17 100644 --- a/stubs/pyasn1/pyasn1/codec/ber/encoder.pyi +++ b/stubs/pyasn1/pyasn1/codec/ber/encoder.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, Unused +from _typeshed import Unused from abc import abstractmethod from pyasn1.type.base import Asn1Type @@ -14,7 +14,7 @@ class AbstractItemEncoder: def encodeLength(self, length, defMode): ... @abstractmethod def encodeValue(self, value, asn1Spec, encodeFun, **options) -> None: ... - def encode(self, value, asn1Spec: Asn1Type | None = None, encodeFun: Incomplete | None = None, **options): ... + def encode(self, value, asn1Spec: Asn1Type | None = None, encodeFun=None, **options): ... class EndOfOctetsEncoder(AbstractItemEncoder): def encodeValue(self, value, asn1Spec, encodeFun, **options): ... diff --git a/stubs/pyasn1/pyasn1/codec/streaming.pyi b/stubs/pyasn1/pyasn1/codec/streaming.pyi index 9c90e7e06ee6..1752e5cc8a4e 100644 --- a/stubs/pyasn1/pyasn1/codec/streaming.pyi +++ b/stubs/pyasn1/pyasn1/codec/streaming.pyi @@ -18,4 +18,4 @@ class CachingStreamWrapper(io.IOBase): def asSeekableStream(substrate): ... def isEndOfStream(substrate) -> Generator[Incomplete, None, None]: ... def peekIntoStream(substrate, size: int = -1) -> Generator[Incomplete, None, None]: ... -def readFromStream(substrate, size: int = -1, context: Incomplete | None = None) -> Generator[Incomplete, None, None]: ... +def readFromStream(substrate, size: int = -1, context=None) -> Generator[Incomplete, None, None]: ... diff --git a/stubs/python-dateutil/dateutil/rrule.pyi b/stubs/python-dateutil/dateutil/rrule.pyi index f091cfbd6e77..22b7c983505c 100644 --- a/stubs/python-dateutil/dateutil/rrule.pyi +++ b/stubs/python-dateutil/dateutil/rrule.pyi @@ -32,7 +32,7 @@ class rrulebase: def count(self): ... def before(self, dt, inc: bool = False): ... def after(self, dt, inc: bool = False): ... - def xafter(self, dt, count: Incomplete | None = None, inc: bool = False): ... + def xafter(self, dt, count=None, inc: bool = False): ... def between(self, after, before, inc: bool = False, count: int = 1): ... class rrule(rrulebase): diff --git a/stubs/python-dateutil/dateutil/tz/tz.pyi b/stubs/python-dateutil/dateutil/tz/tz.pyi index 6addba659e02..c129277343c1 100644 --- a/stubs/python-dateutil/dateutil/tz/tz.pyi +++ b/stubs/python-dateutil/dateutil/tz/tz.pyi @@ -1,5 +1,4 @@ import datetime -from _typeshed import Incomplete from typing import ClassVar, Literal, Protocol, TypeVar from ..relativedelta import relativedelta @@ -99,7 +98,7 @@ class _ICalReader(Protocol): class tzical: def __init__(self, fileobj: str | _ICalReader) -> None: ... def keys(self): ... - def get(self, tzid: Incomplete | None = None): ... + def get(self, tzid=None): ... TZFILES: list[str] TZPATHS: list[str] diff --git a/stubs/python-dateutil/dateutil/zoneinfo/__init__.pyi b/stubs/python-dateutil/dateutil/zoneinfo/__init__.pyi index 7bd2845a21e5..423e003dc095 100644 --- a/stubs/python-dateutil/dateutil/zoneinfo/__init__.pyi +++ b/stubs/python-dateutil/dateutil/zoneinfo/__init__.pyi @@ -10,7 +10,7 @@ class ZoneInfoFile: zones: dict[Incomplete, Incomplete] metadata: _MetadataType | None def __init__(self, zonefile_stream: IO[bytes] | None = None) -> None: ... - def get(self, name, default: Incomplete | None = None): ... + def get(self, name, default=None): ... def get_zonefile_instance(new_instance: bool = False) -> ZoneInfoFile: ... def gettz(name): ... diff --git a/stubs/python-dateutil/dateutil/zoneinfo/rebuild.pyi b/stubs/python-dateutil/dateutil/zoneinfo/rebuild.pyi index e38459267d91..18e2d1c50b2d 100644 --- a/stubs/python-dateutil/dateutil/zoneinfo/rebuild.pyi +++ b/stubs/python-dateutil/dateutil/zoneinfo/rebuild.pyi @@ -1,11 +1,7 @@ -from _typeshed import Incomplete, StrOrBytesPath +from _typeshed import StrOrBytesPath from collections.abc import Sequence from tarfile import TarInfo def rebuild( - filename: StrOrBytesPath, - tag: Incomplete | None = None, - format: str = "gz", - zonegroups: Sequence[str | TarInfo] = [], - metadata: Incomplete | None = None, + filename: StrOrBytesPath, tag=None, format: str = "gz", zonegroups: Sequence[str | TarInfo] = [], metadata=None ) -> None: ... diff --git a/stubs/python-jose/jose/backends/cryptography_backend.pyi b/stubs/python-jose/jose/backends/cryptography_backend.pyi index 3e7e6a9ffc2b..02937a42989e 100644 --- a/stubs/python-jose/jose/backends/cryptography_backend.pyi +++ b/stubs/python-jose/jose/backends/cryptography_backend.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Any, ClassVar from .base import Key @@ -54,10 +53,8 @@ class CryptographyAESKey(Key): IV_BYTE_LENGTH_MODE_MAP: ClassVar[dict[str, int]] def __init__(self, key, algorithm) -> None: ... def to_dict(self): ... - def encrypt(self, plain_text, aad: Incomplete | None = None): ... - def decrypt( - self, cipher_text, iv: Incomplete | None = None, aad: Incomplete | None = None, tag: Incomplete | None = None - ): ... + def encrypt(self, plain_text, aad=None): ... + def decrypt(self, cipher_text, iv=None, aad=None, tag=None): ... def wrap_key(self, key_data): ... def unwrap_key(self, wrapped_key): ... diff --git a/stubs/pytz/pytz/lazy.pyi b/stubs/pytz/pytz/lazy.pyi index dc3b309e8a95..00e43d79cd98 100644 --- a/stubs/pytz/pytz/lazy.pyi +++ b/stubs/pytz/pytz/lazy.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Iterator, Mapping as DictMixin from typing import TypeVar @@ -14,8 +13,8 @@ class LazyDict(DictMixin[str, _VT]): class LazyList(list[_T]): # does not return `Self` type: - def __new__(cls, fill_iter: Incomplete | None = None) -> LazyList[_T]: ... + def __new__(cls, fill_iter=None) -> LazyList[_T]: ... class LazySet(set[_T]): # does not return `Self` type: - def __new__(cls, fill_iter: Incomplete | None = None) -> LazySet[_T]: ... + def __new__(cls, fill_iter=None) -> LazySet[_T]: ... diff --git a/stubs/pywin32/win32/lib/win32evtlogutil.pyi b/stubs/pywin32/win32/lib/win32evtlogutil.pyi index b5a74189d8c5..7ab2cff5e46b 100644 --- a/stubs/pywin32/win32/lib/win32evtlogutil.pyi +++ b/stubs/pywin32/win32/lib/win32evtlogutil.pyi @@ -8,12 +8,7 @@ error = win32api.error langid: Incomplete def AddSourceToRegistry( - appName, - msgDLL: Incomplete | None = None, - eventLogType: str = "Application", - eventLogFlags: Incomplete | None = None, - categoryDLL: Incomplete | None = None, - categoryCount: int = 0, + appName, msgDLL=None, eventLogType: str = "Application", eventLogFlags=None, categoryDLL=None, categoryCount: int = 0 ) -> None: ... def RemoveSourceFromRegistry(appName, eventLogType: str = ...) -> None: ... def ReportEvent( diff --git a/stubs/pywin32/win32comext/axscript/client/framework.pyi b/stubs/pywin32/win32comext/axscript/client/framework.pyi index 5a2dd0745612..270eddc67a58 100644 --- a/stubs/pywin32/win32comext/axscript/client/framework.pyi +++ b/stubs/pywin32/win32comext/axscript/client/framework.pyi @@ -13,7 +13,7 @@ def profile(fn, *args): ... class SafeOutput: softspace: int redir: Incomplete - def __init__(self, redir: Incomplete | None = None) -> None: ... + def __init__(self, redir=None) -> None: ... def write(self, message) -> None: ... def flush(self) -> None: ... def close(self) -> None: ... @@ -140,9 +140,9 @@ class COMScript: def Reset(self) -> None: ... def ChangeScriptState(self, state) -> None: ... def ApplyInScriptedSection(self, codeBlock: AXScriptCodeBlock | None, fn, args): ... - def CompileInScriptedSection(self, codeBlock: AXScriptCodeBlock, type, realCode: Incomplete | None = None): ... - def ExecInScriptedSection(self, codeBlock: AXScriptCodeBlock, globals, locals: Incomplete | None = None): ... - def EvalInScriptedSection(self, codeBlock, globals, locals: Incomplete | None = None): ... + def CompileInScriptedSection(self, codeBlock: AXScriptCodeBlock, type, realCode=None): ... + def ExecInScriptedSection(self, codeBlock: AXScriptCodeBlock, globals, locals=None): ... + def EvalInScriptedSection(self, codeBlock, globals, locals=None): ... def HandleException(self, codeBlock: AXScriptCodeBlock | None) -> NoReturn: ... def BeginScriptedSection(self) -> None: ... def EndScriptedSection(self) -> None: ... diff --git a/stubs/reportlab/reportlab/graphics/barcode/lto.pyi b/stubs/reportlab/reportlab/graphics/barcode/lto.pyi index 9da4dbe51909..27cfc80368d0 100644 --- a/stubs/reportlab/reportlab/graphics/barcode/lto.pyi +++ b/stubs/reportlab/reportlab/graphics/barcode/lto.pyi @@ -17,13 +17,7 @@ class BaseLTOLabel(Standard39): border: Incomplete label: Incomplete def __init__( - self, - prefix: str = "", - number: Incomplete | None = None, - subtype: str = "1", - border: Incomplete | None = None, - checksum: bool = False, - availheight: Incomplete | None = None, + self, prefix: str = "", number=None, subtype: str = "1", border=None, checksum: bool = False, availheight=None ) -> None: ... def drawOn(self, canvas, x, y) -> None: ... diff --git a/stubs/reportlab/reportlab/graphics/barcode/qr.pyi b/stubs/reportlab/reportlab/graphics/barcode/qr.pyi index 0a06bc5ab0bb..d680aa8b304d 100644 --- a/stubs/reportlab/reportlab/graphics/barcode/qr.pyi +++ b/stubs/reportlab/reportlab/graphics/barcode/qr.pyi @@ -46,7 +46,7 @@ class QrCode(Flowable): qrVersion: Incomplete value: Incomplete qr: Incomplete - def __init__(self, value: Incomplete | None = None, **kw) -> None: ... + def __init__(self, value=None, **kw) -> None: ... def addData(self, value) -> None: ... def draw(self) -> None: ... def rect(self, x, y, w, h) -> None: ... diff --git a/stubs/reportlab/reportlab/graphics/charts/axes.pyi b/stubs/reportlab/reportlab/graphics/charts/axes.pyi index 21fad3a0beda..51274804d9e4 100644 --- a/stubs/reportlab/reportlab/graphics/charts/axes.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/axes.pyi @@ -28,13 +28,13 @@ class TickLU: def __getitem__(self, t): ... class _AxisG(Widget): - def makeGrid(self, g, dim: Incomplete | None = None, parent: Incomplete | None = None, exclude=[]) -> None: ... - def getGridDims(self, start: Incomplete | None = None, end: Incomplete | None = None): ... + def makeGrid(self, g, dim=None, parent=None, exclude=[]) -> None: ... + def getGridDims(self, start=None, end=None): ... @property def isYAxis(self): ... @property def isXAxis(self): ... - def addAnnotations(self, g, A: Incomplete | None = None) -> None: ... + def addAnnotations(self, g, A=None) -> None: ... def draw(self): ... class CALabel(PMVLabel): @@ -75,7 +75,7 @@ class CategoryAxis(_AxisG): hiLLen: int def __init__(self) -> None: ... def setPosition(self, x, y, length) -> None: ... - def configure(self, multiSeries, barWidth: Incomplete | None = None) -> None: ... + def configure(self, multiSeries, barWidth=None) -> None: ... def scale(self, idx): ... def midScale(self, idx): ... @@ -95,7 +95,7 @@ class XCategoryAxis(_XTicks, CategoryAxis): def __init__(self) -> None: ... categoryNames: Incomplete def demo(self): ... - def joinToAxis(self, yAxis, mode: str = "bottom", pos: Incomplete | None = None) -> None: ... + def joinToAxis(self, yAxis, mode: str = "bottom", pos=None) -> None: ... def loScale(self, idx): ... def makeAxis(self): ... def makeTickLabels(self): ... @@ -106,7 +106,7 @@ class YCategoryAxis(_YTicks, CategoryAxis): def __init__(self) -> None: ... categoryNames: Incomplete def demo(self): ... - def joinToAxis(self, xAxis, mode: str = "left", pos: Incomplete | None = None) -> None: ... + def joinToAxis(self, xAxis, mode: str = "left", pos=None) -> None: ... def loScale(self, idx): ... def makeAxis(self): ... def makeTickLabels(self): ... @@ -129,7 +129,7 @@ class XValueAxis(_XTicks, ValueAxis): joinAxisPos: Incomplete def __init__(self, **kw) -> None: ... def demo(self): ... - def joinToAxis(self, yAxis, mode: str = "bottom", pos: Incomplete | None = None) -> None: ... + def joinToAxis(self, yAxis, mode: str = "bottom", pos=None) -> None: ... def makeAxis(self): ... def parseDayAndMonth(dmstr): ... @@ -163,7 +163,7 @@ class YValueAxis(_YTicks, ValueAxis): joinAxisPos: Incomplete def __init__(self) -> None: ... def demo(self): ... - def joinToAxis(self, xAxis, mode: str = "left", pos: Incomplete | None = None) -> None: ... + def joinToAxis(self, xAxis, mode: str = "left", pos=None) -> None: ... def makeAxis(self): ... class TimeValueAxis: diff --git a/stubs/reportlab/reportlab/graphics/charts/barcharts.pyi b/stubs/reportlab/reportlab/graphics/charts/barcharts.pyi index 93ebae5a747e..303ca4bc20c1 100644 --- a/stubs/reportlab/reportlab/graphics/charts/barcharts.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/barcharts.pyi @@ -17,7 +17,7 @@ class BarChartProperties(PropHolder): class BarChart(PlotArea): def makeSwatchSample(self, rowNo, x, y, width, height): ... - def getSeriesName(self, i, default: Incomplete | None = None): ... + def getSeriesName(self, i, default=None): ... categoryAxis: Incomplete valueAxis: Incomplete barSpacing: int @@ -43,7 +43,7 @@ class VerticalBarChart(BarChart): ... class HorizontalBarChart(BarChart): ... class _FakeGroup: - def __init__(self, cmp: Incomplete | None = None) -> None: ... + def __init__(self, cmp=None) -> None: ... def add(self, what) -> None: ... def value(self): ... def sort(self) -> None: ... diff --git a/stubs/reportlab/reportlab/graphics/charts/dotbox.pyi b/stubs/reportlab/reportlab/graphics/charts/dotbox.pyi index 624ebef56031..d67fdfe982b9 100644 --- a/stubs/reportlab/reportlab/graphics/charts/dotbox.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/dotbox.pyi @@ -20,5 +20,5 @@ class DotBox(Widget): x: int y: int def __init__(self) -> None: ... - def demo(self, drawing: Incomplete | None = None): ... + def demo(self, drawing=None): ... def draw(self): ... diff --git a/stubs/reportlab/reportlab/graphics/charts/doughnut.pyi b/stubs/reportlab/reportlab/graphics/charts/doughnut.pyi index a25351583a30..414bb8d5ae39 100644 --- a/stubs/reportlab/reportlab/graphics/charts/doughnut.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/doughnut.pyi @@ -25,7 +25,7 @@ class Doughnut(AbstractPieChart): angleRange: int def __init__(self, *, angleRange: int = 360, **kwds) -> None: ... def demo(self): ... - def normalizeData(self, data: Incomplete | None = None): ... + def normalizeData(self, data=None): ... def makeSectors(self): ... def draw(self): ... diff --git a/stubs/reportlab/reportlab/graphics/charts/legends.pyi b/stubs/reportlab/reportlab/graphics/charts/legends.pyi index 012ba70bf36a..ec3b453fba10 100644 --- a/stubs/reportlab/reportlab/graphics/charts/legends.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/legends.pyi @@ -76,7 +76,7 @@ class TotalAnnotator(LegendColEndCallout): fillColor=..., strokeWidth: float = 0.5, strokeColor=..., - strokeDashArray: Incomplete | None = None, + strokeDashArray=None, dx: int = 0, dy: int = 0, dly: int = 0, diff --git a/stubs/reportlab/reportlab/graphics/charts/linecharts.pyi b/stubs/reportlab/reportlab/graphics/charts/linecharts.pyi index 9d7034c31d33..16d1c4bf69e7 100644 --- a/stubs/reportlab/reportlab/graphics/charts/linecharts.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/linecharts.pyi @@ -11,7 +11,7 @@ class LineChartProperties(PropHolder): ... class AbstractLineChart(PlotArea): def makeSwatchSample(self, rowNo, x, y, width, height): ... - def getSeriesName(self, i, default: Incomplete | None = None): ... + def getSeriesName(self, i, default=None): ... class LineChart(AbstractLineChart): ... diff --git a/stubs/reportlab/reportlab/graphics/charts/lineplots.pyi b/stubs/reportlab/reportlab/graphics/charts/lineplots.pyi index 436e7b7d5534..9c7a0009bf8e 100644 --- a/stubs/reportlab/reportlab/graphics/charts/lineplots.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/lineplots.pyi @@ -15,7 +15,7 @@ class LinePlotProperties(PropHolder): ... class InFillValue(int): yValue: Incomplete - def __new__(cls, v, yValue: Incomplete | None = None): ... + def __new__(cls, v, yValue=None): ... class Shader(_SetKeyWordArgs): def shade(self, lp, g, rowNo, rowColor, row) -> None: ... @@ -74,7 +74,7 @@ class GridLinePlot(SimpleTimeSeriesPlot): scaleFactor: Incomplete background: Incomplete def __init__(self) -> None: ... - def demo(self, drawing: Incomplete | None = None): ... + def demo(self, drawing=None): ... def draw(self): ... class AreaLinePlot(LinePlot): @@ -108,7 +108,7 @@ class ScatterPlot(LinePlot): lineLabelFormat: str lineLabelNudge: int def __init__(self) -> None: ... - def demo(self, drawing: Incomplete | None = None): ... + def demo(self, drawing=None): ... def draw(self): ... def sample1a(): ... diff --git a/stubs/reportlab/reportlab/graphics/charts/piecharts.pyi b/stubs/reportlab/reportlab/graphics/charts/piecharts.pyi index c2be4eacf55a..aa15c8d58846 100644 --- a/stubs/reportlab/reportlab/graphics/charts/piecharts.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/piecharts.pyi @@ -50,7 +50,7 @@ class WedgeProperties(PropHolder): class AbstractPieChart(PlotArea): def makeSwatchSample(self, rowNo, x, y, width, height): ... - def getSeriesName(self, i, default: Incomplete | None = None): ... + def getSeriesName(self, i, default=None): ... def boundsOverlap(P, Q): ... def findOverlapRun(B, wrap: int = 1): ... @@ -115,7 +115,7 @@ class LegendedPie(Pie): drawLegend: int def __init__(self) -> None: ... def draw(self): ... - def demo(self, drawing: Incomplete | None = None): ... + def demo(self, drawing=None): ... class Wedge3dProperties(PropHolder): strokeWidth: int diff --git a/stubs/reportlab/reportlab/graphics/charts/slidebox.pyi b/stubs/reportlab/reportlab/graphics/charts/slidebox.pyi index 84787d4fdec5..5af8e999ae03 100644 --- a/stubs/reportlab/reportlab/graphics/charts/slidebox.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/slidebox.pyi @@ -34,5 +34,5 @@ class SlideBox(Widget): sourceLabelFontSize: int sourceLabelFillColor: Incomplete def __init__(self) -> None: ... - def demo(self, drawing: Incomplete | None = None): ... + def demo(self, drawing=None): ... def draw(self): ... diff --git a/stubs/reportlab/reportlab/graphics/charts/spider.pyi b/stubs/reportlab/reportlab/graphics/charts/spider.pyi index 78b466069435..e66e11bb7e8a 100644 --- a/stubs/reportlab/reportlab/graphics/charts/spider.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/spider.pyi @@ -37,7 +37,7 @@ class StrandLabel(SpokeLabel): class SpiderChart(PlotArea): def makeSwatchSample(self, rowNo, x, y, width, height): ... - def getSeriesName(self, i, default: Incomplete | None = None): ... + def getSeriesName(self, i, default=None): ... data: Incomplete labels: Incomplete startAngle: int diff --git a/stubs/reportlab/reportlab/graphics/charts/utils.pyi b/stubs/reportlab/reportlab/graphics/charts/utils.pyi index f8a7c02a6f23..607d3b15a387 100644 --- a/stubs/reportlab/reportlab/graphics/charts/utils.pyi +++ b/stubs/reportlab/reportlab/graphics/charts/utils.pyi @@ -8,10 +8,8 @@ def str2seconds(timeString): ... def seconds2str(seconds): ... def nextRoundNumber(x): ... def find_interval(lo, hi, I: int = 5): ... -def find_good_grid(lower, upper, n=(4, 5, 6, 7, 8, 9), grid: Incomplete | None = None): ... -def ticks( - lower, upper, n=(4, 5, 6, 7, 8, 9), split: int = 1, percent: int = 0, grid: Incomplete | None = None, labelVOffset: int = 0 -): ... +def find_good_grid(lower, upper, n=(4, 5, 6, 7, 8, 9), grid=None): ... +def ticks(lower, upper, n=(4, 5, 6, 7, 8, 9), split: int = 1, percent: int = 0, grid=None, labelVOffset: int = 0): ... def findNones(data): ... def pairFixNones(pairs): ... def maverage(data, n: int = 6): ... @@ -35,9 +33,7 @@ class DrawTimeCollector: def xyDist(xxx_todo_changeme, xxx_todo_changeme1): ... def lineSegmentIntersect(xxx_todo_changeme2, xxx_todo_changeme3, xxx_todo_changeme4, xxx_todo_changeme5): ... -def makeCircularString( - x, y, radius, angle, text, fontName, fontSize, inside: int = 0, G: Incomplete | None = None, textAnchor: str = "start" -): ... +def makeCircularString(x, y, radius, angle, text, fontName, fontSize, inside: int = 0, G=None, textAnchor: str = "start"): ... class CustomDrawChanger: store: Incomplete diff --git a/stubs/reportlab/reportlab/graphics/renderPM.pyi b/stubs/reportlab/reportlab/graphics/renderPM.pyi index 75d6b2ea26fc..68833ea9da95 100644 --- a/stubs/reportlab/reportlab/graphics/renderPM.pyi +++ b/stubs/reportlab/reportlab/graphics/renderPM.pyi @@ -32,19 +32,12 @@ BEZIER_ARC_MAGIC: float class PMCanvas: ctm: Incomplete def __init__( - self, - w, - h, - dpi: int = 72, - bg: int = 16777215, - configPIL: Incomplete | None = None, - backend: Incomplete | None = None, - backendFmt: str = "RGB", + self, w, h, dpi: int = 72, bg: int = 16777215, configPIL=None, backend=None, backendFmt: str = "RGB" ) -> None: ... def toPIL(self): ... - def saveToFile(self, fn, fmt: Incomplete | None = None): ... + def saveToFile(self, fn, fmt=None): ... def saveToString(self, fmt: str = "GIF"): ... - def setFont(self, fontName, fontSize, leading: Incomplete | None = None) -> None: ... + def setFont(self, fontName, fontSize, leading=None) -> None: ... def __setattr__(self, name, value) -> None: ... def __getattr__(self, name): ... def fillstrokepath(self, stroke: int = 1, fill: int = 1) -> None: ... @@ -59,7 +52,7 @@ class PMCanvas: x: float, y: float, text: str, - _fontInfo: Incomplete | None = None, + _fontInfo=None, text_anchor: str = "left", direction: str | None = None, shaping: bool = False, @@ -83,13 +76,13 @@ class PMCanvas: def setLineJoin(self, join) -> None: ... strokeWidth: Incomplete def setLineWidth(self, width) -> None: ... - def stringWidth(self, text, fontName: Incomplete | None = None, fontSize: Incomplete | None = None): ... + def stringWidth(self, text, fontName=None, fontSize=None): ... def drawToPMCanvas( d: Drawing, dpi: float = 72, bg: int = 0xFFFFFF, - configPIL: Incomplete | None = None, + configPIL=None, showBoundary=..., backend="rlPyCairo", backendFmt: str = "RGB", @@ -98,7 +91,7 @@ def drawToPIL( d: Drawing, dpi: float = 72, bg: int = 0xFFFFFF, - configPIL: Incomplete | None = None, + configPIL=None, showBoundary=..., backend="rlPyCairo", backendFmt: str = "RGB", @@ -107,7 +100,7 @@ def drawToPILP( d: Drawing, dpi: float = 72, bg: int = 0xFFFFFF, - configPIL: Incomplete | None = None, + configPIL=None, showBoundary=..., backend="rlPyCairo", backendFmt: str = "RGB", @@ -118,7 +111,7 @@ def drawToFile( fmt: str = "GIF", dpi: float = 72, bg: int = 0xFFFFFF, - configPIL: Incomplete | None = None, + configPIL=None, showBoundary=..., backend="rlPyCairo", backendFmt: str = "RGB", @@ -128,7 +121,7 @@ def drawToString( fmt: str = "GIF", dpi: float = 72, bg: int = 0xFFFFFF, - configPIL: Incomplete | None = None, + configPIL=None, showBoundary=..., backend="rlPyCairo", backendFmt: str = "RGB", diff --git a/stubs/reportlab/reportlab/graphics/renderPS.pyi b/stubs/reportlab/reportlab/graphics/renderPS.pyi index 105d7879168c..f7e47c5af40e 100644 --- a/stubs/reportlab/reportlab/graphics/renderPS.pyi +++ b/stubs/reportlab/reportlab/graphics/renderPS.pyi @@ -15,12 +15,12 @@ class PSCanvas: PostScriptLevel: Incomplete def __init__(self, size=(300, 300), PostScriptLevel: int = 2) -> None: ... def comment(self, msg) -> None: ... - def drawImage(self, image, x1, y1, width: Incomplete | None = None, height: Incomplete | None = None) -> None: ... + def drawImage(self, image, x1, y1, width=None, height=None) -> None: ... def clear(self) -> None: ... - def save(self, f: Incomplete | None = None) -> None: ... + def save(self, f=None) -> None: ... def saveState(self) -> None: ... def restoreState(self) -> None: ... - def stringWidth(self, s, font: Incomplete | None = None, fontSize: Incomplete | None = None): ... + def stringWidth(self, s, font=None, fontSize=None): ... def setLineCap(self, v) -> None: ... def setLineJoin(self, v) -> None: ... def setDash(self, array=[], phase: int = 0) -> None: ... @@ -29,7 +29,7 @@ class PSCanvas: def setFillColor(self, color) -> None: ... def setFillMode(self, v) -> None: ... def setLineWidth(self, width) -> None: ... - def setFont(self, font, fontSize, leading: Incomplete | None = None) -> None: ... + def setFont(self, font, fontSize, leading=None) -> None: ... def line(self, x1, y1, x2, y2) -> None: ... def drawString(self, x, y, s, angle: int = 0, text_anchor: str = "left", textRenderMode: int = 0) -> None: ... def drawCentredString(self, x, y, text, text_anchor: str = "middle", textRenderMode: int = 0) -> None: ... @@ -41,7 +41,7 @@ class PSCanvas: def circle(self, xc, yc, r) -> None: ... def drawArc(self, x1, y1, x2, y2, startAng: int = 0, extent: int = 360, fromcenter: int = 0) -> None: ... def polygon(self, p, closed: int = 0, stroke: int = 1, fill: int = 1) -> None: ... - def lines(self, lineList, color: Incomplete | None = None, width: Incomplete | None = None) -> None: ... + def lines(self, lineList, color=None, width=None) -> None: ... def moveTo(self, x, y) -> None: ... def lineTo(self, x, y) -> None: ... def curveTo(self, x1, y1, x2, y2, x3, y3) -> None: ... @@ -64,7 +64,7 @@ class _PSRenderer(Renderer): def drawEllipse(self, ellipse) -> None: ... def drawPolygon(self, p) -> None: ... def drawString(self, stringObj) -> None: ... - def drawPath(self, path, fillMode: Incomplete | None = None): ... + def drawPath(self, path, fillMode=None): ... def applyStateChanges(self, delta, newState) -> None: ... def drawImage(self, image) -> None: ... diff --git a/stubs/reportlab/reportlab/graphics/renderSVG.pyi b/stubs/reportlab/reportlab/graphics/renderSVG.pyi index b687ee9a86ca..b9611dad4138 100644 --- a/stubs/reportlab/reportlab/graphics/renderSVG.pyi +++ b/stubs/reportlab/reportlab/graphics/renderSVG.pyi @@ -16,7 +16,7 @@ EXTRA_FILL_STYLES: Final[Sequence[str]] def drawToString(d: Drawing, showBoundary=0, **kwds) -> str: ... def drawToFile(d: Drawing, fn: str | IO[str], showBoundary=0, **kwds) -> None: ... def draw(drawing: Drawing, canvas: Canvas, x: float = 0, y: float = 0, showBoundary=0) -> None: ... -def transformNode(doc, newTag, node: Incomplete | None = None, **attrDict): ... +def transformNode(doc, newTag, node=None, **attrDict): ... class EncodedWriter(list[Incomplete]): BOMS: Incomplete @@ -44,8 +44,8 @@ class SVGCanvas: scaleTree: Incomplete currGroup: Incomplete def __init__(self, size=(300, 300), encoding: str = "utf-8", verbose: int = 0, bom: bool = False, **kwds) -> None: ... - def save(self, fn: Incomplete | None = None) -> None: ... - def NOTUSED_stringWidth(self, s, font: Incomplete | None = None, fontSize: Incomplete | None = None): ... + def save(self, fn=None) -> None: ... + def NOTUSED_stringWidth(self, s, font=None, fontSize=None): ... def setLineCap(self, v) -> None: ... def setLineJoin(self, v) -> None: ... def setDash(self, array=[], phase: int = 0) -> None: ... @@ -54,50 +54,26 @@ class SVGCanvas: def setFillMode(self, v) -> None: ... def setLineWidth(self, width) -> None: ... def setFont(self, font, fontSize) -> None: ... - def rect(self, x1, y1, x2, y2, rx: int = 8, ry: int = 8, link_info: Incomplete | None = None, **_svgAttrs) -> None: ... - def roundRect(self, x1, y1, x2, y2, rx: int = 8, ry: int = 8, link_info: Incomplete | None = None, **_svgAttrs) -> None: ... + def rect(self, x1, y1, x2, y2, rx: int = 8, ry: int = 8, link_info=None, **_svgAttrs) -> None: ... + def roundRect(self, x1, y1, x2, y2, rx: int = 8, ry: int = 8, link_info=None, **_svgAttrs) -> None: ... def drawString( - self, - s, - x, - y, - angle: int = 0, - link_info: Incomplete | None = None, - text_anchor: str = "left", - textRenderMode: int = 0, - **_svgAttrs, + self, s, x, y, angle: int = 0, link_info=None, text_anchor: str = "left", textRenderMode: int = 0, **_svgAttrs ) -> None: ... def drawCentredString( - self, - s, - x, - y, - angle: int = 0, - text_anchor: str = "middle", - link_info: Incomplete | None = None, - textRenderMode: int = 0, - **_svgAttrs, + self, s, x, y, angle: int = 0, text_anchor: str = "middle", link_info=None, textRenderMode: int = 0, **_svgAttrs ) -> None: ... def drawRightString( - self, - text, - x, - y, - angle: int = 0, - text_anchor: str = "end", - link_info: Incomplete | None = None, - textRenderMode: int = 0, - **_svgAttrs, + self, text, x, y, angle: int = 0, text_anchor: str = "end", link_info=None, textRenderMode: int = 0, **_svgAttrs ) -> None: ... def comment(self, data) -> None: ... def drawImage(self, image, x, y, width, height, embed: bool = True) -> None: ... def line(self, x1, y1, x2, y2) -> None: ... - def ellipse(self, x1, y1, x2, y2, link_info: Incomplete | None = None) -> None: ... - def circle(self, xc, yc, r, link_info: Incomplete | None = None) -> None: ... + def ellipse(self, x1, y1, x2, y2, link_info=None) -> None: ... + def circle(self, xc, yc, r, link_info=None) -> None: ... def drawCurve(self, x1, y1, x2, y2, x3, y3, x4, y4, closed: int = 0) -> None: ... def drawArc(self, x1, y1, x2, y2, startAng: int = 0, extent: int = 360, fromcenter: int = 0) -> None: ... - def polygon(self, points, closed: int = 0, link_info: Incomplete | None = None) -> None: ... - def lines(self, lineList, color: Incomplete | None = None, width: Incomplete | None = None) -> None: ... + def polygon(self, points, closed: int = 0, link_info=None) -> None: ... + def lines(self, lineList, color=None, width=None) -> None: ... def polyLine(self, points) -> None: ... def startGroup(self, attrDict={"transform": ""}): ... def endGroup(self, currGroup) -> None: ... diff --git a/stubs/reportlab/reportlab/graphics/renderbase.pyi b/stubs/reportlab/reportlab/graphics/renderbase.pyi index bd2c377b27d9..e9d04c948872 100644 --- a/stubs/reportlab/reportlab/graphics/renderbase.pyi +++ b/stubs/reportlab/reportlab/graphics/renderbase.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Final __version__: Final[str] @@ -6,7 +5,7 @@ __version__: Final[str] def getStateDelta(shape): ... class StateTracker: - def __init__(self, defaults: Incomplete | None = None, defaultObj: Incomplete | None = None) -> None: ... + def __init__(self, defaults=None, defaultObj=None) -> None: ... def push(self, delta) -> None: ... def pop(self): ... def getState(self): ... diff --git a/stubs/reportlab/reportlab/graphics/svgpath.pyi b/stubs/reportlab/reportlab/graphics/svgpath.pyi index 89464473a29e..1c8f62625f79 100644 --- a/stubs/reportlab/reportlab/graphics/svgpath.pyi +++ b/stubs/reportlab/reportlab/graphics/svgpath.pyi @@ -4,7 +4,7 @@ from .shapes import Path, UserNode class SvgPath(Path, UserNode): fillColor: Incomplete - def __init__(self, s, isClipPath: int = 0, autoclose: Incomplete | None = None, fillMode=0, **kw) -> None: ... + def __init__(self, s, isClipPath: int = 0, autoclose=None, fillMode=0, **kw) -> None: ... def provideNode(self): ... __all__ = ("SvgPath",) diff --git a/stubs/reportlab/reportlab/graphics/utils.pyi b/stubs/reportlab/reportlab/graphics/utils.pyi index 5853d4943246..af61914c0058 100644 --- a/stubs/reportlab/reportlab/graphics/utils.pyi +++ b/stubs/reportlab/reportlab/graphics/utils.pyi @@ -1,5 +1,3 @@ -from _typeshed import Incomplete - class RenderPMError(Exception): ... def setFont(gs, fontName, fontSize) -> None: ... @@ -13,7 +11,7 @@ def text2Path( anchor: str = "start", truncate: int = 1, pathReverse: int = 0, - gs: Incomplete | None = None, + gs=None, **kwds, ): ... diff --git a/stubs/reportlab/reportlab/graphics/widgetbase.pyi b/stubs/reportlab/reportlab/graphics/widgetbase.pyi index 9ecbd223fc79..e02d3857b65e 100644 --- a/stubs/reportlab/reportlab/graphics/widgetbase.pyi +++ b/stubs/reportlab/reportlab/graphics/widgetbase.pyi @@ -26,7 +26,7 @@ class ScaleWidget(Widget): y: Incomplete contents: Incomplete scale: Incomplete - def __init__(self, x: int = 0, y: int = 0, scale: float = 1.0, contents: Incomplete | None = None) -> None: ... + def __init__(self, x: int = 0, y: int = 0, scale: float = 1.0, contents=None) -> None: ... def draw(self): ... class CloneMixin: @@ -43,7 +43,7 @@ class TypedPropertyCollection(PropHolder): def setVector(self, **kw) -> None: ... def __getattr__(self, name): ... def __setattr__(self, name, value): ... - def checkAttr(self, key, a, default: Incomplete | None = None): ... + def checkAttr(self, key, a, default=None): ... def tpcGetItem(obj, x): ... def isWKlass(obj): ... @@ -81,7 +81,7 @@ class Sizer(Widget): fillColor: Incomplete strokeColor: Incomplete def __init__(self, *elements) -> None: ... - def add(self, node, name: Incomplete | None = None) -> None: ... + def add(self, node, name=None) -> None: ... def getBounds(self): ... def draw(self): ... diff --git a/stubs/reportlab/reportlab/graphics/widgets/grids.pyi b/stubs/reportlab/reportlab/graphics/widgets/grids.pyi index 1664fa63de61..3a3a249301e6 100644 --- a/stubs/reportlab/reportlab/graphics/widgets/grids.pyi +++ b/stubs/reportlab/reportlab/graphics/widgets/grids.pyi @@ -6,7 +6,7 @@ from reportlab.graphics.widgetbase import Widget __version__: Final[str] -def frange(start, end: Incomplete | None = None, inc: Incomplete | None = None): ... +def frange(start, end=None, inc=None): ... def makeDistancesList(list): ... class Grid(Widget): diff --git a/stubs/reportlab/reportlab/lib/PyFontify.pyi b/stubs/reportlab/reportlab/lib/PyFontify.pyi index f25d70340d16..c1bcc0d67e05 100644 --- a/stubs/reportlab/reportlab/lib/PyFontify.pyi +++ b/stubs/reportlab/reportlab/lib/PyFontify.pyi @@ -17,5 +17,5 @@ matchRE: Incomplete idKeyPat: str idRE: Incomplete -def fontify(pytext, searchfrom: int = 0, searchto: Incomplete | None = None): ... +def fontify(pytext, searchfrom: int = 0, searchto=None): ... def test(path) -> None: ... diff --git a/stubs/reportlab/reportlab/lib/attrmap.pyi b/stubs/reportlab/reportlab/lib/attrmap.pyi index d39e92fb3a84..ac586aadc7f1 100644 --- a/stubs/reportlab/reportlab/lib/attrmap.pyi +++ b/stubs/reportlab/reportlab/lib/attrmap.pyi @@ -13,28 +13,14 @@ class CallableValue: class AttrMapValue: validate: Incomplete desc: Incomplete - def __init__( - self, - validate: Incomplete | None = None, - desc: Incomplete | None = None, - initial: Incomplete | None = None, - advancedUsage: int = 0, - **kw, - ) -> None: ... + def __init__(self, validate=None, desc=None, initial=None, advancedUsage: int = 0, **kw) -> None: ... def __getattr__(self, name): ... class AttrMap(dict[str, AttrMapValue]): - def __init__(self, BASE: Incomplete | None = None, UNWANTED=[], **kw) -> None: ... + def __init__(self, BASE=None, UNWANTED=[], **kw) -> None: ... def remove(self, unwanted) -> None: ... def clone(self, UNWANTED=[], **kw): ... def validateSetattr(obj, name, value) -> None: ... def hook__setattr__(obj): ... -def addProxyAttribute( - src, - name, - validate: Incomplete | None = None, - desc: Incomplete | None = None, - initial: Incomplete | None = None, - dst: Incomplete | None = None, -) -> None: ... +def addProxyAttribute(src, name, validate=None, desc=None, initial=None, dst=None) -> None: ... diff --git a/stubs/reportlab/reportlab/lib/fontfinder.pyi b/stubs/reportlab/reportlab/lib/fontfinder.pyi index 4fbe901e9f03..05370969b197 100644 --- a/stubs/reportlab/reportlab/lib/fontfinder.pyi +++ b/stubs/reportlab/reportlab/lib/fontfinder.pyi @@ -37,16 +37,10 @@ class FontFinder: validate: Incomplete verbose: Incomplete def __init__( - self, - dirs=[], - useCache: bool = True, - validate: bool = False, - recur: bool = False, - fsEncoding: Incomplete | None = None, - verbose: int = 0, + self, dirs=[], useCache: bool = True, validate: bool = False, recur: bool = False, fsEncoding=None, verbose: int = 0 ) -> None: ... - def addDirectory(self, dirName, recur: Incomplete | None = None) -> None: ... - def addDirectories(self, dirNames, recur: Incomplete | None = None) -> None: ... + def addDirectory(self, dirName, recur=None) -> None: ... + def addDirectories(self, dirNames, recur=None) -> None: ... def getFamilyNames(self): ... def getFontsInFamily(self, familyName): ... def getFamilyXmlReport(self): ... diff --git a/stubs/reportlab/reportlab/lib/formatters.pyi b/stubs/reportlab/reportlab/lib/formatters.pyi index 31f215719e2c..c88692bc1331 100644 --- a/stubs/reportlab/reportlab/lib/formatters.pyi +++ b/stubs/reportlab/reportlab/lib/formatters.pyi @@ -13,14 +13,7 @@ class DecimalFormatter(Formatter): comma: Incomplete prefix: Incomplete suffix: Incomplete - def __init__( - self, - places: int = 2, - decimalSep: str = ".", - thousandSep: Incomplete | None = None, - prefix: Incomplete | None = None, - suffix: Incomplete | None = None, - ) -> None: ... + def __init__(self, places: int = 2, decimalSep: str = ".", thousandSep=None, prefix=None, suffix=None) -> None: ... def format(self, num): ... __all__ = ("Formatter", "DecimalFormatter") diff --git a/stubs/reportlab/reportlab/lib/normalDate.pyi b/stubs/reportlab/reportlab/lib/normalDate.pyi index f02c70d1c911..0d26498cb29e 100644 --- a/stubs/reportlab/reportlab/lib/normalDate.pyi +++ b/stubs/reportlab/reportlab/lib/normalDate.pyi @@ -12,7 +12,7 @@ def isLeapYear(year): ... class NormalDateException(Exception): ... class NormalDate: - def __init__(self, normalDate: Incomplete | None = None) -> None: ... + def __init__(self, normalDate=None) -> None: ... def add(self, days) -> None: ... def __add__(self, days): ... def __radd__(self, days): ... diff --git a/stubs/reportlab/reportlab/lib/pdfencrypt.pyi b/stubs/reportlab/reportlab/lib/pdfencrypt.pyi index b5819145e288..d81d451618ec 100644 --- a/stubs/reportlab/reportlab/lib/pdfencrypt.pyi +++ b/stubs/reportlab/reportlab/lib/pdfencrypt.pyi @@ -35,12 +35,12 @@ class StandardEncryption: def __init__( self, userPassword, - ownerPassword: Incomplete | None = None, + ownerPassword=None, canPrint: int = 1, canModify: int = 1, canCopy: int = 1, canAnnotate: int = 1, - strength: Incomplete | None = None, + strength=None, ) -> None: ... def setAllPermissions(self, value) -> None: ... def permissionBits(self): ... @@ -52,7 +52,7 @@ class StandardEncryption: OE: Incomplete Perms: Incomplete objnum: Incomplete - def prepare(self, document, overrideID: Incomplete | None = None) -> None: ... + def prepare(self, document, overrideID=None) -> None: ... version: Incomplete def register(self, objnum, version) -> None: ... def info(self): ... @@ -71,22 +71,22 @@ def unHexText(hexText): ... PadString: Incomplete def checkRevision(revision): ... -def encryptionkey(password, OwnerKey, Permissions, FileId1, revision: Incomplete | None = None): ... +def encryptionkey(password, OwnerKey, Permissions, FileId1, revision=None): ... def computeO(userPassword, ownerPassword, revision): ... def computeU( encryptionkey, encodestring=b"(\xbfN^Nu\x8aAd\x00NV\xff\xfa\x01\x08..\x00\xb6\xd0h>\x80/\x0c\xa9\xfedSiz", - revision: Incomplete | None = None, - documentId: Incomplete | None = None, + revision=None, + documentId=None, ): ... def checkU(encryptionkey, U) -> None: ... -def encodePDF(key, objectNumber, generationNumber, string, revision: Incomplete | None = None): ... +def encodePDF(key, objectNumber, generationNumber, string, revision=None): ... def equalityCheck(observed, expected, label) -> None: ... def test() -> None: ... def encryptCanvas( canvas, userPassword, - ownerPassword: Incomplete | None = None, + ownerPassword=None, canPrint: int = 1, canModify: int = 1, canCopy: int = 1, @@ -101,7 +101,7 @@ class EncryptionFlowable(StandardEncryption, Flowable): def encryptDocTemplate( dt, userPassword, - ownerPassword: Incomplete | None = None, + ownerPassword=None, canPrint: int = 1, canModify: int = 1, canCopy: int = 1, @@ -111,7 +111,7 @@ def encryptDocTemplate( def encryptPdfInMemory( inputPDF, userPassword, - ownerPassword: Incomplete | None = None, + ownerPassword=None, canPrint: int = 1, canModify: int = 1, canCopy: int = 1, @@ -122,7 +122,7 @@ def encryptPdfOnDisk( inputFileName, outputFileName, userPassword, - ownerPassword: Incomplete | None = None, + ownerPassword=None, canPrint: int = 1, canModify: int = 1, canCopy: int = 1, diff --git a/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi b/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi index 8f50c931bcfb..6c2eed8f2074 100644 --- a/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi +++ b/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi @@ -23,7 +23,7 @@ def copy_locations(new_node, old_node) -> None: ... class UntrustedAstTransformer(ast.NodeTransformer): names_seen: Incomplete nameIsAllowed: Incomplete - def __init__(self, names_seen: Incomplete | None = None, nameIsAllowed: Incomplete | None = None) -> None: ... + def __init__(self, names_seen=None, nameIsAllowed=None) -> None: ... @property def tmpName(self): ... def error(self, node, msg) -> NoReturn: ... @@ -160,7 +160,7 @@ class __rl_SafeIter__: __rl_safe_builtins__: Incomplete -def safer_globals(g: Incomplete | None = None): ... +def safer_globals(g=None): ... math_log10 = math.log10 __rl_undef__: Incomplete @@ -176,12 +176,7 @@ class __RL_SAFE_ENV__: real_bi: Incomplete bi_replace: Incomplete __rl_builtins__: Incomplete - def __init__( - self, - timeout: Incomplete | None = None, - allowed_magic_methods: Incomplete | None = None, - allowed_magic_names: Incomplete | None = None, - ) -> None: ... + def __init__(self, timeout=None, allowed_magic_methods=None, allowed_magic_names=None) -> None: ... def __rl_type__(self, *args): ... def __rl_check__(self) -> None: ... def __rl_sd__(self, obj): ... @@ -217,45 +212,23 @@ class __RL_SAFE_ENV__: def __rl_args_iter__(self, *args): ... def __rl_list__(self, it): ... def __rl_compile__( - self, - src, - fname: str = "", - mode: str = "eval", - flags: int = 0, - inherit: bool = True, - visit: Incomplete | None = None, + self, src, fname: str = "", mode: str = "eval", flags: int = 0, inherit: bool = True, visit=None ): ... __rl_limit__: Incomplete def __rl_safe_eval__( - self, - expr, - g, - l, - mode, - timeout: Incomplete | None = None, - allowed_magic_methods: Incomplete | None = None, - __frame_depth__: int = 3, - allowed_magic_names: Incomplete | None = None, + self, expr, g, l, mode, timeout=None, allowed_magic_methods=None, __frame_depth__: int = 3, allowed_magic_names=None ): ... class __rl_safe_eval__: mode: str env: Incomplete def __init__(self) -> None: ... - def __call__( - self, - expr, - g: Incomplete | None = None, - l: Incomplete | None = None, - timeout: Incomplete | None = None, - allowed_magic_methods: Incomplete | None = None, - allowed_magic_names: Incomplete | None = None, - ): ... + def __call__(self, expr, g=None, l=None, timeout=None, allowed_magic_methods=None, allowed_magic_names=None): ... class __rl_safe_exec__(__rl_safe_eval__): mode: str -def rl_extended_literal_eval(expr, safe_callables: Incomplete | None = None, safe_names: Incomplete | None = None): ... +def rl_extended_literal_eval(expr, safe_callables=None, safe_names=None): ... rl_safe_exec: __rl_safe_exec__ rl_safe_eval: __rl_safe_eval__ diff --git a/stubs/reportlab/reportlab/lib/rparsexml.pyi b/stubs/reportlab/reportlab/lib/rparsexml.pyi index ef804c2e708b..4bff57d0bd6a 100644 --- a/stubs/reportlab/reportlab/lib/rparsexml.pyi +++ b/stubs/reportlab/reportlab/lib/rparsexml.pyi @@ -17,7 +17,7 @@ CDATAENDMARKER: str replacelist: Incomplete def unEscapeContentList(contentList): ... -def parsexmlSimple(xmltext, oneOutermostTag: int = 0, eoCB: Incomplete | None = None, entityReplacer=...): ... +def parsexmlSimple(xmltext, oneOutermostTag: int = 0, eoCB=None, entityReplacer=...): ... parsexml = parsexmlSimple diff --git a/stubs/reportlab/reportlab/lib/sequencer.pyi b/stubs/reportlab/reportlab/lib/sequencer.pyi index f76d11a45c0b..1973b8138cdc 100644 --- a/stubs/reportlab/reportlab/lib/sequencer.pyi +++ b/stubs/reportlab/reportlab/lib/sequencer.pyi @@ -1,11 +1,9 @@ -from _typeshed import Incomplete - __all__ = ["Sequencer", "getSequencer", "setSequencer"] class _Counter: def __init__(self) -> None: ... def setFormatter(self, formatFunc) -> None: ... - def reset(self, value: Incomplete | None = None) -> None: ... + def reset(self, value=None) -> None: ... def next(self): ... __next__ = next def nextf(self): ... @@ -15,13 +13,13 @@ class _Counter: class Sequencer: def __init__(self) -> None: ... def __next__(self): ... - def next(self, counter: Incomplete | None = None): ... - def thisf(self, counter: Incomplete | None = None): ... - def nextf(self, counter: Incomplete | None = None): ... - def setDefaultCounter(self, default: Incomplete | None = None) -> None: ... + def next(self, counter=None): ... + def thisf(self, counter=None): ... + def nextf(self, counter=None): ... + def setDefaultCounter(self, default=None) -> None: ... def registerFormat(self, format, func) -> None: ... def setFormat(self, counter, format) -> None: ... - def reset(self, counter: Incomplete | None = None, base: int = 0) -> None: ... + def reset(self, counter=None, base: int = 0) -> None: ... def chain(self, parent, child) -> None: ... def __getitem__(self, key): ... def format(self, template): ... diff --git a/stubs/reportlab/reportlab/lib/testutils.pyi b/stubs/reportlab/reportlab/lib/testutils.pyi index 436e9327464a..0dd2fa224150 100644 --- a/stubs/reportlab/reportlab/lib/testutils.pyi +++ b/stubs/reportlab/reportlab/lib/testutils.pyi @@ -20,7 +20,7 @@ def setOutDir(name): ... def mockUrlRead(name): ... def outputfile(fn): ... def printLocation(depth: int = 1) -> None: ... -def makeSuiteForClasses(*classes, testMethodPrefix: Incomplete | None = None): ... +def makeSuiteForClasses(*classes, testMethodPrefix=None): ... def getCVSEntries(folder, files: int = 1, folders: int = 0): ... class ExtConfigParser(ConfigParser): @@ -39,7 +39,7 @@ class GlobDirectoryWalker: class RestrictedGlobDirectoryWalker(GlobDirectoryWalker): ignorePatterns: Incomplete - def __init__(self, directory, pattern: str = "*", ignore: Incomplete | None = None) -> None: ... + def __init__(self, directory, pattern: str = "*", ignore=None) -> None: ... def filterFiles(self, folder, files): ... class CVSGlobDirectoryWalker(GlobDirectoryWalker): @@ -67,6 +67,6 @@ class ScriptThatMakesFileTest(unittest.TestCase): def equalStrings(a, b, enc: str = "utf8"): ... def eqCheck(r, x) -> None: ... def rlextraNeeded(): ... -def rlSkipIf(cond, reason, __module__: Incomplete | None = None): ... -def rlSkipUnless(cond, reason, __module__: Incomplete | None = None): ... -def rlSkip(reason, __module__: Incomplete | None = None): ... +def rlSkipIf(cond, reason, __module__=None): ... +def rlSkipUnless(cond, reason, __module__=None): ... +def rlSkip(reason, __module__=None): ... diff --git a/stubs/reportlab/reportlab/lib/utils.pyi b/stubs/reportlab/reportlab/lib/utils.pyi index 08485eb2df59..bb22eef1f3f7 100644 --- a/stubs/reportlab/reportlab/lib/utils.pyi +++ b/stubs/reportlab/reportlab/lib/utils.pyi @@ -63,7 +63,7 @@ class CIDict(dict[_KT, _VT]): def __init__(self, *args, **kwds) -> None: ... def update(self, D: SupportsItems[_KT, _VT]) -> None: ... # type:ignore[override] -def markfilename(filename, creatorcode: Incomplete | None = None, filetype: Incomplete | None = None): ... +def markfilename(filename, creatorcode=None, filetype=None): ... __rl_loader__: Incomplete @@ -72,7 +72,7 @@ def isFileSystemDistro() -> bool: ... def isCompactDistro() -> bool: ... def isSourceDistro() -> bool: ... def normalize_path(p: PathLike[AnyStr]) -> PathLike[AnyStr]: ... -def recursiveImport(modulename, baseDir: Incomplete | None = None, noCWD: int = 0, debug: int = 0): ... +def recursiveImport(modulename, baseDir=None, noCWD: int = 0, debug: int = 0): ... haveImages: Final[bool] @@ -82,7 +82,7 @@ class ArgvDictValue: def __init__(self, value, func) -> None: ... def getArgvDict(**kw): ... -def getHyphenater(hDict: Incomplete | None = None): ... +def getHyphenater(hDict=None): ... def open_for_read_by_name(name, mode: str = "b"): ... def rlUrlRead(name): ... def open_for_read(name, mode: str = "b"): ... @@ -98,12 +98,12 @@ def rl_get_module(name, dir): ... class ImageReader: fileName: Incomplete fp: Incomplete - def __init__(self, fileName, ident: Incomplete | None = None) -> None: ... + def __init__(self, fileName, ident=None) -> None: ... def identity(self) -> str: ... @classmethod def check_pil_image_size(cls, im) -> None: ... @classmethod - def set_max_image_size(cls, max_image_size: Incomplete | None = None) -> None: ... + def set_max_image_size(cls, max_image_size=None) -> None: ... def jpeg_fh(self) -> None: ... def getSize(self) -> tuple[int, int]: ... mode: Incomplete @@ -126,7 +126,7 @@ class DebugMemo: getScript: int = 1, modules=(), capture_traceback: int = 1, - stdout: Incomplete | None = None, + stdout=None, **kw, ) -> None: ... def add(self, **kw) -> None: ... @@ -184,13 +184,13 @@ class TimeStamp: YMDhms: Incomplete dhh: Incomplete dmm: Incomplete - def __init__(self, invariant: Incomplete | None = None) -> None: ... + def __init__(self, invariant=None) -> None: ... @property def datetime(self): ... @property def asctime(self): ... -def recursiveGetAttr(obj, name, g: Incomplete | None = None): ... +def recursiveGetAttr(obj, name, g=None): ... def recursiveSetAttr(obj, name, value) -> None: ... def recursiveDelAttr(obj, name) -> None: ... def yieldNoneSplits(L) -> Generator[Incomplete, None, None]: ... diff --git a/stubs/reportlab/reportlab/lib/validators.pyi b/stubs/reportlab/reportlab/lib/validators.pyi index 9b1b6db637be..689aa1ffb60e 100644 --- a/stubs/reportlab/reportlab/lib/validators.pyi +++ b/stubs/reportlab/reportlab/lib/validators.pyi @@ -80,13 +80,11 @@ class OneOf(Validator): def test(self, x): ... class SequenceOf(Validator): - def __init__( - self, elemTest, name: Incomplete | None = None, emptyOK: int = 1, NoneOK: int = 0, lo: int = 0, hi: int = 2147483647 - ) -> None: ... + def __init__(self, elemTest, name=None, emptyOK: int = 1, NoneOK: int = 0, lo: int = 0, hi: int = 2147483647) -> None: ... def test(self, x): ... class EitherOr(Validator): - def __init__(self, tests, name: Incomplete | None = None) -> None: ... + def __init__(self, tests, name=None) -> None: ... def test(self, x): ... class NoneOr(EitherOr): @@ -108,11 +106,11 @@ class AutoOr(EitherOr): def test(self, x): ... class isInstanceOf(Validator): - def __init__(self, klass: Incomplete | None = None) -> None: ... + def __init__(self, klass=None) -> None: ... def test(self, x): ... class isSubclassOf(Validator): - def __init__(self, klass: Incomplete | None = None) -> None: ... + def __init__(self, klass=None) -> None: ... def test(self, x): ... class matchesPattern(Validator): diff --git a/stubs/reportlab/reportlab/pdfbase/acroform.pyi b/stubs/reportlab/reportlab/pdfbase/acroform.pyi index 83df837e92a8..4722559f0f0c 100644 --- a/stubs/reportlab/reportlab/pdfbase/acroform.pyi +++ b/stubs/reportlab/reportlab/pdfbase/acroform.pyi @@ -38,9 +38,9 @@ class AcroForm(PDFObject): value, buttonStyle: str = "circle", shape: str = "square", - fillColor: Incomplete | None = None, - borderColor: Incomplete | None = None, - textColor: Incomplete | None = None, + fillColor=None, + borderColor=None, + textColor=None, borderWidth: int = 1, borderStyle: str = "solid", size: int = 20, @@ -63,16 +63,16 @@ class AcroForm(PDFObject): checked: bool = False, buttonStyle: str = "check", shape: str = "square", - fillColor: Incomplete | None = None, - borderColor: Incomplete | None = None, - textColor: Incomplete | None = None, + fillColor=None, + borderColor=None, + textColor=None, borderWidth: int = 1, borderStyle: str = "solid", size: int = 20, x: int = 0, y: int = 0, - tooltip: Incomplete | None = None, - name: Incomplete | None = None, + tooltip=None, + name=None, annotationFlags: str = "print", fieldFlags: str = "required", forceBorder: bool = False, @@ -81,20 +81,20 @@ class AcroForm(PDFObject): ) -> None: ... def radio( self, - value: Incomplete | None = None, + value=None, selected: bool = False, buttonStyle: str = "circle", shape: str = "circle", - fillColor: Incomplete | None = None, - borderColor: Incomplete | None = None, - textColor: Incomplete | None = None, + fillColor=None, + borderColor=None, + textColor=None, borderWidth: int = 1, borderStyle: str = "solid", size: int = 20, x: int = 0, y: int = 0, - tooltip: Incomplete | None = None, - name: Incomplete | None = None, + tooltip=None, + name=None, annotationFlags: str = "print", fieldFlags: str = "noToggleToOff required radio", forceBorder: bool = False, @@ -110,9 +110,9 @@ class AcroForm(PDFObject): rFontName, fontSize, shape: str = "square", - fillColor: Incomplete | None = None, - borderColor: Incomplete | None = None, - textColor: Incomplete | None = None, + fillColor=None, + borderColor=None, + textColor=None, borderWidth: int = 1, borderStyle: str = "solid", width: int = 120, @@ -128,72 +128,72 @@ class AcroForm(PDFObject): def textfield( self, value: str = "", - fillColor: Incomplete | None = None, - borderColor: Incomplete | None = None, - textColor: Incomplete | None = None, + fillColor=None, + borderColor=None, + textColor=None, borderWidth: int = 1, borderStyle: str = "solid", width: int = 120, height: int = 36, x: int = 0, y: int = 0, - tooltip: Incomplete | None = None, - name: Incomplete | None = None, + tooltip=None, + name=None, annotationFlags: str = "print", fieldFlags: str = "", forceBorder: bool = False, relative: bool = False, maxlen: int = 100, - fontName: Incomplete | None = None, - fontSize: Incomplete | None = None, + fontName=None, + fontSize=None, dashLen: int = 3, ): ... def listbox( self, value: str = "", - fillColor: Incomplete | None = None, - borderColor: Incomplete | None = None, - textColor: Incomplete | None = None, + fillColor=None, + borderColor=None, + textColor=None, borderWidth: int = 1, borderStyle: str = "solid", width: int = 120, height: int = 36, x: int = 0, y: int = 0, - tooltip: Incomplete | None = None, - name: Incomplete | None = None, + tooltip=None, + name=None, annotationFlags: str = "print", fieldFlags: str = "", forceBorder: bool = False, relative: bool = False, - fontName: Incomplete | None = None, - fontSize: Incomplete | None = None, + fontName=None, + fontSize=None, dashLen: int = 3, - maxlen: Incomplete | None = None, + maxlen=None, options=[], ): ... def choice( self, value: str = "", - fillColor: Incomplete | None = None, - borderColor: Incomplete | None = None, - textColor: Incomplete | None = None, + fillColor=None, + borderColor=None, + textColor=None, borderWidth: int = 1, borderStyle: str = "solid", width: int = 120, height: int = 36, x: int = 0, y: int = 0, - tooltip: Incomplete | None = None, - name: Incomplete | None = None, + tooltip=None, + name=None, annotationFlags: str = "print", fieldFlags: str = "combo", forceBorder: bool = False, relative: bool = False, - fontName: Incomplete | None = None, - fontSize: Incomplete | None = None, + fontName=None, + fontSize=None, dashLen: int = 3, - maxlen: Incomplete | None = None, + maxlen=None, options=[], ): ... def checkboxRelative(self, **kwds) -> None: ... diff --git a/stubs/reportlab/reportlab/pdfbase/cidfonts.pyi b/stubs/reportlab/reportlab/pdfbase/cidfonts.pyi index e4370bcdd199..d2afbed2a4c8 100644 --- a/stubs/reportlab/reportlab/pdfbase/cidfonts.pyi +++ b/stubs/reportlab/reportlab/pdfbase/cidfonts.pyi @@ -34,7 +34,7 @@ class CIDFont(pdfmetrics.Font): substitutionFonts: Incomplete def __init__(self, face, encoding) -> None: ... def formatForPdf(self, text): ... - def stringWidth(self, text, size, encoding: Incomplete | None = None): ... + def stringWidth(self, text, size, encoding=None): ... def addObjects(self, doc) -> None: ... class UnicodeCIDFont(CIDFont): @@ -45,7 +45,7 @@ class UnicodeCIDFont(CIDFont): unicodeWidths: Incomplete def __init__(self, face, isVertical: bool = False, isHalfWidth: bool = False) -> None: ... def formatForPdf(self, text): ... - def stringWidth(self, text, size, encoding: Incomplete | None = None): ... + def stringWidth(self, text, size, encoding=None): ... def precalculate(cmapdir) -> None: ... def test() -> None: ... diff --git a/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi b/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi index 0fb9e8ea44d3..3cd33b470efa 100644 --- a/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi +++ b/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi @@ -48,13 +48,7 @@ class PDFDocument(PDFObject): fontMapping: Incomplete delayedFonts: Incomplete def __init__( - self, - dummyoutline: int = 0, - compression=1, - invariant=0, - filename: Incomplete | None = None, - pdfVersion=(1, 3), - lang: Incomplete | None = None, + self, dummyoutline: int = 0, compression=1, invariant=0, filename=None, pdfVersion=(1, 3), lang=None ) -> None: ... compression: Incomplete def setCompression(self, onoff) -> None: ... @@ -89,7 +83,7 @@ class PDFDocument(PDFObject): def getFormBBox(self, name, boxType: str = "MediaBox"): ... def getXObjectName(self, name): ... def xobjDict(self, formnames): ... - def Reference(self, obj, name: Incomplete | None = None): ... + def Reference(self, obj, name=None): ... PDFtrue: str PDFfalse: str @@ -116,7 +110,7 @@ def PDFName(data, lo="!", hi="~"): ... class PDFDictionary(PDFObject): multiline: bool dict: Incomplete - def __init__(self, dict: Incomplete | None = None) -> None: ... + def __init__(self, dict=None) -> None: ... def __setitem__(self, name, value) -> None: ... def __getitem__(self, a): ... def __contains__(self, a) -> bool: ... @@ -134,7 +128,7 @@ def checkPDFBoolean(value): ... class CheckedPDFDictionary(PDFDictionary): validate: Incomplete - def __init__(self, dict: Incomplete | None = None, validate: Incomplete | None = None) -> None: ... + def __init__(self, dict=None, validate=None) -> None: ... def __setitem__(self, name, value) -> None: ... class ViewerPreferencesPDFDictionary(CheckedPDFDictionary): @@ -159,12 +153,10 @@ class PDFStream(PDFObject): dictionary: Incomplete content: Incomplete filters: Incomplete - def __init__( - self, dictionary: Incomplete | None = None, content: Incomplete | None = None, filters: Incomplete | None = None - ) -> None: ... + def __init__(self, dictionary=None, content=None, filters=None) -> None: ... def format(self, document): ... -def teststream(content: Incomplete | None = None): ... +def teststream(content=None): ... teststreamcontent: str @@ -213,16 +205,7 @@ class PDFCrossReferenceTable(PDFObject): class PDFTrailer(PDFObject): startxref: Incomplete - def __init__( - self, - startxref, - Size: Incomplete | None = None, - Prev: Incomplete | None = None, - Root: Incomplete | None = None, - Info: Incomplete | None = None, - ID: Incomplete | None = None, - Encrypt: Incomplete | None = None, - ) -> None: ... + def __init__(self, startxref, Size=None, Prev=None, Root=None, Info=None, ID=None, Encrypt=None) -> None: ... def format(self, document): ... class PDFCatalog(PDFObject): @@ -307,9 +290,7 @@ class PDFPageLabel(PDFCatalog): S: Incomplete St: Incomplete P: Incomplete - def __init__( - self, style: Incomplete | None = None, start: Incomplete | None = None, prefix: Incomplete | None = None - ) -> None: ... + def __init__(self, style=None, start=None, prefix=None) -> None: ... def __lt__(self, oth): ... def testpage(document) -> None: ... @@ -344,9 +325,7 @@ class PDFOutlines(PDFObject): buildtree: Incomplete closedict: Incomplete def __init__(self) -> None: ... - def addOutlineEntry( - self, destinationname, level: int = 0, title: Incomplete | None = None, closed: Incomplete | None = None - ) -> None: ... + def addOutlineEntry(self, destinationname, level: int = 0, title=None, closed=None) -> None: ... def setDestinations(self, destinationtree) -> None: ... def format(self, document): ... def setNames(self, canvas, *nametree) -> None: ... @@ -355,9 +334,9 @@ class PDFOutlines(PDFObject): first: Incomplete count: int def prepare(self, document, canvas) -> None: ... - def maketree(self, document, destinationtree, Parent: Incomplete | None = None, toplevel: int = 0): ... + def maketree(self, document, destinationtree, Parent=None, toplevel: int = 0): ... -def count(tree, closedict: Incomplete | None = None): ... +def count(tree, closedict=None): ... class PDFInfo(PDFObject): producer: Incomplete @@ -425,7 +404,7 @@ class PDFRectangle(PDFObject): class PDFDate(PDFObject): dateFormatter: Incomplete - def __init__(self, ts: Incomplete | None = None, dateFormatter: Incomplete | None = None) -> None: ... + def __init__(self, ts=None, dateFormatter=None) -> None: ... def format(self, doc): ... class Destination(PDFObject): @@ -538,7 +517,7 @@ class PDFFormXObject(PDFObject): class PDFPostScriptXObject(PDFObject): content: Incomplete - def __init__(self, content: Incomplete | None = None) -> None: ... + def __init__(self, content=None) -> None: ... def format(self, document): ... class PDFImageXObject(PDFObject): @@ -549,7 +528,7 @@ class PDFImageXObject(PDFObject): colorSpace: str streamContent: str mask: Incomplete - def __init__(self, name, source: Incomplete | None = None, mask: Incomplete | None = None) -> None: ... + def __init__(self, name, source=None, mask=None) -> None: ... def loadImageFromA85(self, source): ... def loadImageFromJPEG(self, imageFile): ... def loadImageFromRaw(self, source): ... @@ -627,7 +606,7 @@ class PDFRadialShading(PDFShading): def Dict(self, document): ... class XMP(PDFStream): - def __init__(self, path: Incomplete | None = None, creator: Incomplete | None = None) -> None: ... + def __init__(self, path=None, creator=None) -> None: ... def makeContent(self, doc): ... # Param name is changed from the base class: def format(self, doc): ... diff --git a/stubs/reportlab/reportlab/pdfbase/pdfmetrics.pyi b/stubs/reportlab/reportlab/pdfbase/pdfmetrics.pyi index 3eac7bcd4829..d4a2cdb43697 100644 --- a/stubs/reportlab/reportlab/pdfbase/pdfmetrics.pyi +++ b/stubs/reportlab/reportlab/pdfbase/pdfmetrics.pyi @@ -27,7 +27,7 @@ class TypeFace: def getFontFiles(self): ... def findT1File(self, ext: str = ".pfb"): ... -def bruteForceSearchForFile(fn, searchPath: Incomplete | None = None): ... +def bruteForceSearchForFile(fn, searchPath=None): ... def bruteForceSearchForAFM(faceName): ... class Encoding: @@ -35,7 +35,7 @@ class Encoding: frozen: int baseEncodingName: Incomplete vector: Incomplete - def __init__(self, name, base: Incomplete | None = None) -> None: ... + def __init__(self, name, base=None) -> None: ... def __getitem__(self, index): ... def __setitem__(self, index, value) -> None: ... def freeze(self) -> None: ... @@ -52,7 +52,7 @@ class Font: encName: Incomplete substitutionFonts: Incomplete shapable: bool - def __init__(self, name, faceName, encName, substitutionFonts: Incomplete | None = None) -> None: ... + def __init__(self, name, faceName, encName, substitutionFonts=None) -> None: ... def stringWidth(self, text: str | bytes, size: float, encoding: str = "utf8") -> float: ... def addObjects(self, doc) -> None: ... @@ -71,13 +71,7 @@ class EmbeddedType1Face(TypeFace): def registerTypeFace(face) -> None: ... def registerEncoding(enc) -> None: ... -def registerFontFamily( - family, - normal: Incomplete | None = None, - bold: Incomplete | None = None, - italic: Incomplete | None = None, - boldItalic: Incomplete | None = None, -) -> None: ... +def registerFontFamily(family, normal=None, bold=None, italic=None, boldItalic=None) -> None: ... def registerFont(font) -> None: ... def getTypeFace(faceName): ... def getEncoding(encName): ... diff --git a/stubs/reportlab/reportlab/pdfbase/pdfutils.pyi b/stubs/reportlab/reportlab/pdfbase/pdfutils.pyi index 38994148da3d..a1e9636b0bf1 100644 --- a/stubs/reportlab/reportlab/pdfbase/pdfutils.pyi +++ b/stubs/reportlab/reportlab/pdfbase/pdfutils.pyi @@ -1,11 +1,10 @@ -from _typeshed import Incomplete from typing import Final __version__: Final[str] -def makeA85Image(filename, IMG: Incomplete | None = None, detectJpeg: bool = False): ... -def makeRawImage(filename, IMG: Incomplete | None = None, detectJpeg: bool = False): ... -def cacheImageFile(filename, returnInMemory: int = 0, IMG: Incomplete | None = None): ... +def makeA85Image(filename, IMG=None, detectJpeg: bool = False): ... +def makeRawImage(filename, IMG=None, detectJpeg: bool = False): ... +def cacheImageFile(filename, returnInMemory: int = 0, IMG=None): ... def preProcessImages(spec) -> None: ... def cachedImageExists(filename): ... def readJPEGInfo(image): ... diff --git a/stubs/reportlab/reportlab/pdfbase/ttfonts.pyi b/stubs/reportlab/reportlab/pdfbase/ttfonts.pyi index c3f4d20dcc7c..d410830bd2e8 100644 --- a/stubs/reportlab/reportlab/pdfbase/ttfonts.pyi +++ b/stubs/reportlab/reportlab/pdfbase/ttfonts.pyi @@ -137,7 +137,7 @@ class TTFont: internalName: Incomplete frozen: int subsets: Incomplete - def __init__(self, asciiReadable: Incomplete | None = None, ttf: Incomplete | None = None) -> None: ... + def __init__(self, asciiReadable=None, ttf=None) -> None: ... fontName: str face: TTFontFace diff --git a/stubs/reportlab/reportlab/pdfgen/canvas.pyi b/stubs/reportlab/reportlab/pdfgen/canvas.pyi index 214fe6383b93..4f3d5891a107 100644 --- a/stubs/reportlab/reportlab/pdfgen/canvas.pyi +++ b/stubs/reportlab/reportlab/pdfgen/canvas.pyi @@ -25,21 +25,21 @@ class Canvas(_PDFColorSetter): filename: str | IO[bytes], pagesize: tuple[float, float] | None = None, bottomup: int = 1, - pageCompression: Incomplete | None = None, - invariant: Incomplete | None = None, + pageCompression=None, + invariant=None, verbosity: int = 0, - encrypt: Incomplete | None = None, - cropMarks: Incomplete | None = None, - pdfVersion: Incomplete | None = None, - enforceColorSpace: Incomplete | None = None, + encrypt=None, + cropMarks=None, + pdfVersion=None, + enforceColorSpace=None, initialFontName: float | None = None, initialFontSize: float | None = None, initialLeading: float | None = None, - cropBox: Incomplete | None = None, - artBox: Incomplete | None = None, - trimBox: Incomplete | None = None, - bleedBox: Incomplete | None = None, - lang: Incomplete | None = None, + cropBox=None, + artBox=None, + trimBox=None, + bleedBox=None, + lang=None, ) -> None: ... def setEncrypt(self, encrypt) -> None: ... def init_graphics_state(self) -> None: ... @@ -49,7 +49,7 @@ class Canvas(_PDFColorSetter): STATE_RANGE: Incomplete def setAuthor(self, author: str | None) -> None: ... def setDateFormatter(self, dateFormatter) -> None: ... - def addOutlineEntry(self, title, key, level: int = 0, closed: Incomplete | None = None) -> None: ... + def addOutlineEntry(self, title, key, level: int = 0, closed=None) -> None: ... def setOutlineNames0(self, *nametree) -> None: ... def setTitle(self, title: str | None) -> None: ... def setSubject(self, subject: str | None) -> None: ... @@ -62,16 +62,7 @@ class Canvas(_PDFColorSetter): def setBlendMode(self, v) -> None: ... def showPage(self) -> None: ... def setPageCallBack(self, func) -> None: ... - def bookmarkPage( - self, - key, - fit: str = "Fit", - left: Incomplete | None = None, - top: Incomplete | None = None, - bottom: Incomplete | None = None, - right: Incomplete | None = None, - zoom: Incomplete | None = None, - ): ... + def bookmarkPage(self, key, fit: str = "Fit", left=None, top=None, bottom=None, right=None, zoom=None): ... def bookmarkHorizontalAbsolute(self, key, top, left: int = 0, fit: str = "XYZ", **kw): ... def bookmarkHorizontal(self, key, relativeX, relativeY, **kw) -> None: ... def doForm(self, name) -> None: ... @@ -87,7 +78,7 @@ class Canvas(_PDFColorSetter): anchor: str = "c", anchorAtXY: bool = False, showBoundary: bool = False, - extraReturn: Incomplete | None = None, + extraReturn=None, ): ... def drawImage( self, @@ -96,83 +87,49 @@ class Canvas(_PDFColorSetter): y: float, width: float | None = None, height: float | None = None, - mask: Incomplete | None = None, + mask=None, preserveAspectRatio: bool = False, anchor: str = "c", anchorAtXY: bool = False, showBoundary: bool = False, - extraReturn: Incomplete | None = None, + extraReturn=None, ): ... - def beginForm( - self, name, lowerx: int = 0, lowery: int = 0, upperx: Incomplete | None = None, uppery: Incomplete | None = None - ) -> None: ... + def beginForm(self, name, lowerx: int = 0, lowery: int = 0, upperx=None, uppery=None) -> None: ... def endForm(self, **extra_attributes) -> None: ... def addPostScriptCommand(self, command, position: int = 1) -> None: ... - def freeTextAnnotation( - self, - contents, - DA, - Rect: Incomplete | None = None, - addtopage: int = 1, - name: Incomplete | None = None, - relative: int = 0, - **kw, - ) -> None: ... - def textAnnotation( - self, - contents, - Rect: Incomplete | None = None, - addtopage: int = 1, - name: Incomplete | None = None, - relative: int = 0, - **kw, - ) -> None: ... + def freeTextAnnotation(self, contents, DA, Rect=None, addtopage: int = 1, name=None, relative: int = 0, **kw) -> None: ... + def textAnnotation(self, contents, Rect=None, addtopage: int = 1, name=None, relative: int = 0, **kw) -> None: ... textAnnotation0 = textAnnotation def highlightAnnotation( - self, - contents, - Rect, - QuadPoints: Incomplete | None = None, - Color=[0.83, 0.89, 0.95], - addtopage: int = 1, - name: Incomplete | None = None, - relative: int = 0, - **kw, + self, contents, Rect, QuadPoints=None, Color=[0.83, 0.89, 0.95], addtopage: int = 1, name=None, relative: int = 0, **kw ) -> None: ... def inkAnnotation( - self, - contents, - InkList: Incomplete | None = None, - Rect: Incomplete | None = None, - addtopage: int = 1, - name: Incomplete | None = None, - relative: int = 0, - **kw, + self, contents, InkList=None, Rect=None, addtopage: int = 1, name=None, relative: int = 0, **kw ) -> None: ... inkAnnotation0 = inkAnnotation def linkAbsolute( self, contents, destinationname, - Rect: Incomplete | None = None, + Rect=None, addtopage: int = 1, - name: Incomplete | None = None, + name=None, thickness: int = 0, color: Color | None = None, - dashArray: Incomplete | None = None, + dashArray=None, **kw, ): ... def linkRect( self, contents, destinationname, - Rect: Incomplete | None = None, + Rect=None, addtopage: int = 1, - name: Incomplete | None = None, + name=None, relative: int = 1, thickness: int = 0, color: Color | None = None, - dashArray: Incomplete | None = None, + dashArray=None, **kw, ): ... def linkURL( @@ -182,7 +139,7 @@ class Canvas(_PDFColorSetter): relative: int = 0, thickness: int = 0, color: Color | None = None, - dashArray: Incomplete | None = None, + dashArray=None, kind: str = "URI", **kw, ) -> None: ... @@ -214,8 +171,8 @@ class Canvas(_PDFColorSetter): y: float, size: float = 5, gap: float = 1, - text: Incomplete | None = None, - strokeColor: Incomplete | None = None, + text=None, + strokeColor=None, strokeWidth: float | None = None, fontSize: float = 3, ) -> None: ... @@ -228,8 +185,8 @@ class Canvas(_PDFColorSetter): def circle(self, x_cen, y_cen, r, stroke: int = 1, fill: int = 0) -> None: ... def roundRect(self, x, y, width, height, radius, stroke: int = 1, fill: int = 0) -> None: ... def shade(self, shading) -> None: ... - def linearGradient(self, x0, y0, x1, y1, colors, positions: Incomplete | None = None, extend: bool = True) -> None: ... - def radialGradient(self, x, y, radius, colors, positions: Incomplete | None = None, extend: bool = True) -> None: ... + def linearGradient(self, x0, y0, x1, y1, colors, positions=None, extend: bool = True) -> None: ... + def radialGradient(self, x, y, radius, colors, positions=None, extend: bool = True) -> None: ... def drawString( self, x: float, @@ -286,12 +243,12 @@ class Canvas(_PDFColorSetter): def setMiterLimit(self, limit) -> None: ... def setDash(self, array: list[float] | tuple[float, ...] | float = [], phase: float = 0) -> None: ... def beginPath(self): ... - def drawPath(self, aPath, stroke: int = 1, fill: int = 0, fillMode: Incomplete | None = None) -> None: ... - def clipPath(self, aPath, stroke: int = 1, fill: int = 0, fillMode: Incomplete | None = None) -> None: ... + def drawPath(self, aPath, stroke: int = 1, fill: int = 0, fillMode=None) -> None: ... + def clipPath(self, aPath, stroke: int = 1, fill: int = 0, fillMode=None) -> None: ... def beginText(self, x: float = 0, y: float = 0, direction: Literal["LTR", "RTL"] | None = None) -> PDFTextObject: ... def drawText(self, aTextObject: PDFTextObject) -> None: ... def setPageCompression(self, pageCompression: int = 1) -> None: ... - def setPageDuration(self, duration: Incomplete | None = None) -> None: ... + def setPageDuration(self, duration=None) -> None: ... def setPageTransition( self, effectname: str | None = None, duration: float = 1, direction: float = 0, dimension: str = "H", motion: str = "I" ) -> None: ... @@ -302,9 +259,7 @@ class Canvas(_PDFColorSetter): def setCatalogEntry(self, key, value) -> None: ... def getCatalogEntry(self, key): ... def delCatalogEntry(self, key) -> None: ... - def addPageLabel( - self, pageNum, style: Incomplete | None = None, start: Incomplete | None = None, prefix: Incomplete | None = None - ) -> None: ... + def addPageLabel(self, pageNum, style=None, start=None, prefix=None) -> None: ... @property def acroForm(self): ... def drawBoundary(self, sb, x1: float, y1: float, width: float, height: float) -> None: ... diff --git a/stubs/reportlab/reportlab/pdfgen/pathobject.pyi b/stubs/reportlab/reportlab/pdfgen/pathobject.pyi index 681399eb166e..3081a3e14434 100644 --- a/stubs/reportlab/reportlab/pdfgen/pathobject.pyi +++ b/stubs/reportlab/reportlab/pdfgen/pathobject.pyi @@ -1,10 +1,9 @@ -from _typeshed import Incomplete from typing import Final __version__: Final[str] class PDFPathObject: - def __init__(self, code: Incomplete | None = None) -> None: ... + def __init__(self, code=None) -> None: ... def getCode(self): ... def moveTo(self, x, y) -> None: ... def lineTo(self, x, y) -> None: ... diff --git a/stubs/reportlab/reportlab/pdfgen/pdfimages.pyi b/stubs/reportlab/reportlab/pdfgen/pdfimages.pyi index dd93cbf1b9c1..3ebca254012a 100644 --- a/stubs/reportlab/reportlab/pdfgen/pdfimages.pyi +++ b/stubs/reportlab/reportlab/pdfgen/pdfimages.pyi @@ -15,9 +15,7 @@ class PDFImage: bitsPerComponent: int filters: Incomplete source: Incomplete - def __init__( - self, image, x, y, width: Incomplete | None = None, height: Incomplete | None = None, caching: int = 0 - ) -> None: ... + def __init__(self, image, x, y, width=None, height=None, caching: int = 0) -> None: ... def jpg_imagedata(self): ... def cache_imagedata(self): ... def PIL_imagedata(self): ... @@ -33,6 +31,6 @@ class PDFImage: anchor: str = "sw", anchorAtXY: bool = False, showBoundary: bool = False, - extraReturn: Incomplete | None = None, + extraReturn=None, ): ... def format(self, document): ... diff --git a/stubs/reportlab/reportlab/platypus/doctemplate.pyi b/stubs/reportlab/reportlab/platypus/doctemplate.pyi index d5557db149e5..5dc5ca0c6d7e 100644 --- a/stubs/reportlab/reportlab/platypus/doctemplate.pyi +++ b/stubs/reportlab/reportlab/platypus/doctemplate.pyi @@ -40,18 +40,18 @@ class _CanvasMaker(Protocol): filename: str | IO[bytes], /, *, - pagesize: Incomplete | None = None, - pageCompression: Incomplete | None = None, - invariant: Incomplete | None = None, - enforceColorSpace: Incomplete | None = None, - initialFontName: Incomplete | None = None, - initialFontSize: Incomplete | None = None, - initialLeading: Incomplete | None = None, - cropBox: Incomplete | None = None, - artBox: Incomplete | None = None, - trimBox: Incomplete | None = None, - bleedBox: Incomplete | None = None, - lang: Incomplete | None = None, + pagesize=None, + pageCompression=None, + invariant=None, + enforceColorSpace=None, + initialFontName=None, + initialFontSize=None, + initialLeading=None, + cropBox=None, + artBox=None, + trimBox=None, + bleedBox=None, + lang=None, ) -> Canvas: ... class LayoutError(Exception): ... @@ -120,7 +120,7 @@ class Indenter(FrameActionFlowable): class NotAtTopPageBreak(FrameActionFlowable): locChanger: int nextTemplate: Incomplete - def __init__(self, nextTemplate: Incomplete | None = None) -> None: ... + def __init__(self, nextTemplate=None) -> None: ... def frameAction(self, frame: Frame) -> None: ... class NextPageTemplate(ActionFlowable): @@ -145,11 +145,11 @@ class PageTemplate: onPage: _PageCallback = ..., onPageEnd: _PageCallback = ..., pagesize: tuple[float, float] | None = None, - autoNextPageTemplate: Incomplete | None = None, - cropBox: Incomplete | None = None, - artBox: Incomplete | None = None, - trimBox: Incomplete | None = None, - bleedBox: Incomplete | None = None, + autoNextPageTemplate=None, + cropBox=None, + artBox=None, + trimBox=None, + bleedBox=None, ) -> None: ... def beforeDrawPage(self, canv: Canvas, doc: BaseDocTemplate) -> None: ... def checkPageSize(self, canv: Canvas, doc: BaseDocTemplate) -> None: ... @@ -240,7 +240,7 @@ class BaseDocTemplate: def handle_pageBegin(self) -> None: ... def handle_pageEnd(self) -> None: ... def handle_pageBreak(self, slow: bool | None = None) -> None: ... - def handle_frameBegin(self, resume: int = 0, pageTopFlowables: Incomplete | None = None) -> None: ... + def handle_frameBegin(self, resume: int = 0, pageTopFlowables=None) -> None: ... def handle_frameEnd(self, resume: int = 0) -> None: ... def handle_nextPageTemplate(self, pt: str | int | list[str] | tuple[str, ...]) -> None: ... def handle_nextFrame(self, fx: str | int, resume: int = 0) -> None: ... diff --git a/stubs/reportlab/reportlab/platypus/figures.pyi b/stubs/reportlab/reportlab/platypus/figures.pyi index 9d5c8d2cc828..8433c7e14f04 100644 --- a/stubs/reportlab/reportlab/platypus/figures.pyi +++ b/stubs/reportlab/reportlab/platypus/figures.pyi @@ -30,13 +30,13 @@ class Figure(Flowable): caption: str = "", captionFont="Helvetica-Oblique", captionSize: int = 12, - background: Incomplete | None = None, + background=None, captionTextColor=..., - captionBackColor: Incomplete | None = None, - border: Incomplete | None = None, + captionBackColor=None, + border=None, spaceBefore: int = 12, spaceAfter: int = 12, - captionGap: Incomplete | None = None, + captionGap=None, captionAlign: str = "centre", captionPosition: str = "bottom", hAlign: str = "CENTER", @@ -56,7 +56,7 @@ class PageFigure(Figure): caption: str captionStyle: Incomplete background: Incomplete - def __init__(self, background: Incomplete | None = None) -> None: ... + def __init__(self, background=None) -> None: ... def drawVirtualPage(self) -> None: ... def drawFigure(self) -> None: ... @@ -75,7 +75,7 @@ class FlexFigure(Figure): width, height, caption, - background: Incomplete | None = None, + background=None, captionFont: str = "Helvetica-Oblique", captionSize: int = 8, captionTextColor=..., @@ -86,7 +86,7 @@ class FlexFigure(Figure): captionGap: int = 9, captionAlign: str = "centre", captionPosition: str = "top", - scaleFactor: Incomplete | None = None, + scaleFactor=None, hAlign: str = "CENTER", border: int = 1, ) -> None: ... @@ -95,23 +95,13 @@ class FlexFigure(Figure): class ImageFigure(FlexFigure): filename: Incomplete - def __init__( - self, - filename, - caption, - background: Incomplete | None = None, - scaleFactor: Incomplete | None = None, - hAlign: str = "CENTER", - border: Incomplete | None = None, - ) -> None: ... + def __init__(self, filename, caption, background=None, scaleFactor=None, hAlign: str = "CENTER", border=None) -> None: ... def drawFigure(self) -> None: ... class DrawingFigure(FlexFigure): drawing: Incomplete growToFit: int - def __init__( - self, modulename, classname, caption, baseDir: Incomplete | None = None, background: Incomplete | None = None - ) -> None: ... + def __init__(self, modulename, classname, caption, baseDir=None, background=None) -> None: ... def drawFigure(self) -> None: ... def demo1(canvas) -> None: ... diff --git a/stubs/reportlab/reportlab/platypus/flowables.pyi b/stubs/reportlab/reportlab/platypus/flowables.pyi index 328a145ca7d2..b51aa216c3da 100644 --- a/stubs/reportlab/reportlab/platypus/flowables.pyi +++ b/stubs/reportlab/reportlab/platypus/flowables.pyi @@ -191,7 +191,7 @@ class KeepTogether(_ContainerSpace, Flowable): splitAtTop: bool # TODO: Consider using Sequence[Flowable] for covariance, even if reportlab # only supports list/tuple - def __init__(self, flowables: _FlowableSublist | None, maxHeight: Incomplete | None = None) -> None: ... + def __init__(self, flowables: _FlowableSublist | None, maxHeight=None) -> None: ... class KeepTogetherSplitAtTop(KeepTogether): splitAtTop: bool @@ -239,7 +239,7 @@ class HRFlowable(Flowable): spaceAfter: float = 1, hAlign: _HAlignment = "CENTER", vAlign: _VAlignment = "BOTTOM", - dash: Incomplete | None = None, + dash=None, ) -> None: ... def draw(self) -> None: ... @@ -321,7 +321,7 @@ class BalancedColumns(_FindSplitterMixin, NullDraw): needed: float = 72, spaceBefore: float = 0, spaceAfter: float = 0, - showBoundary: Incomplete | None = None, + showBoundary=None, leftPadding: float | None = None, innerPadding: float | None = None, rightPadding: float | None = None, @@ -387,7 +387,7 @@ class BulletDrawer: bulletOffsetY: int = 0, bulletDedent: int = 0, bulletDir: str = "ltr", - bulletFormat: Incomplete | None = None, + bulletFormat=None, ) -> None: ... def drawOn(self, indenter: DDIndenter, canv: Canvas, x: float, y: float) -> None: ... @@ -400,7 +400,7 @@ class LIIndenter(DDIndenter): flowable: Flowable, leftIndent: float = 0, rightIndent: float = 0, - bullet: Incomplete | None = None, + bullet=None, spaceBefore: float | None = None, spaceAfter: float | None = None, ) -> None: ... @@ -414,9 +414,7 @@ class ListFlowable(_Container, Flowable): style: ListStyle # NOTE: style has to be a ListStyle, but this will be annoying with sheet["ul"] # TODO: Use Unpack for kwds with the ListStyle properties + spaceBefore/spaceAfter - def __init__( - self, flowables: Iterable[_NestedFlowable], start: Incomplete | None = None, style: PropertySet | None = None, **kwds - ) -> None: ... + def __init__(self, flowables: Iterable[_NestedFlowable], start=None, style: PropertySet | None = None, **kwds) -> None: ... class TopPadder(Flowable): # NOTE: TopPadder is mostly a transparent wrapper, we may consider trying diff --git a/stubs/reportlab/reportlab/platypus/frames.pyi b/stubs/reportlab/reportlab/platypus/frames.pyi index 061ba9be67c6..f8e832c1b83a 100644 --- a/stubs/reportlab/reportlab/platypus/frames.pyi +++ b/stubs/reportlab/reportlab/platypus/frames.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Literal from reportlab.pdfgen.canvas import Canvas @@ -27,8 +26,8 @@ class Frame: topPadding: float = 6, id: str | None = None, showBoundary: int = 0, - overlapAttachedSpace: Incomplete | None = None, - _debug: Incomplete | None = None, + overlapAttachedSpace=None, + _debug=None, ) -> None: ... def add(self, flowable: Flowable, canv: Canvas, trySplit: int = 0) -> Literal[0, 1]: ... def split(self, flowable: Flowable, canv: Canvas) -> list[Flowable]: ... diff --git a/stubs/reportlab/reportlab/platypus/tables.pyi b/stubs/reportlab/reportlab/platypus/tables.pyi index 3bcaa2f87018..617c86634b3f 100644 --- a/stubs/reportlab/reportlab/platypus/tables.pyi +++ b/stubs/reportlab/reportlab/platypus/tables.pyi @@ -85,7 +85,7 @@ class Table(Flowable): rowSplitRange: tuple[int, int] | None = None, spaceBefore: float | None = None, spaceAfter: float | None = None, - longTableOptimize: Incomplete | None = None, + longTableOptimize=None, minRowHeights: Sequence[float] | None = None, cornerRadii: _CornerRadii | _UNSET_ | None = ..., renderCB: TableRenderCB | None = None, diff --git a/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi b/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi index 494dd12a4193..75a2de35da1d 100644 --- a/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +++ b/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from logging import Logger from typing import Any @@ -16,21 +15,21 @@ class OAuth1(AuthBase): def __init__( self, client_key, - client_secret: Incomplete | None = None, - resource_owner_key: Incomplete | None = None, - resource_owner_secret: Incomplete | None = None, - callback_uri: Incomplete | None = None, + client_secret=None, + resource_owner_key=None, + resource_owner_secret=None, + callback_uri=None, signature_method="HMAC-SHA1", signature_type="AUTH_HEADER", - rsa_key: Incomplete | None = None, - verifier: Incomplete | None = None, + rsa_key=None, + verifier=None, decoding: str | None = "utf-8", client_class: type[Client] | None = None, force_include_body: bool = False, *, - realm: Incomplete | None = None, + realm=None, encoding: str = "utf-8", - nonce: Incomplete | None = None, - timestamp: Incomplete | None = None, + nonce=None, + timestamp=None, **kwargs: Any, # passed to client_class's __init__ ) -> None: ... diff --git a/stubs/requests-oauthlib/requests_oauthlib/oauth1_session.pyi b/stubs/requests-oauthlib/requests_oauthlib/oauth1_session.pyi index 2c48e0a1a859..e97a83ba0a5f 100644 --- a/stubs/requests-oauthlib/requests_oauthlib/oauth1_session.pyi +++ b/stubs/requests-oauthlib/requests_oauthlib/oauth1_session.pyi @@ -37,20 +37,20 @@ class OAuth1Session(requests.Session): def __init__( self, client_key, - client_secret: Incomplete | None = None, - resource_owner_key: Incomplete | None = None, - resource_owner_secret: Incomplete | None = None, - callback_uri: Incomplete | None = None, + client_secret=None, + resource_owner_key=None, + resource_owner_secret=None, + callback_uri=None, signature_method="HMAC-SHA1", signature_type="AUTH_HEADER", - rsa_key: Incomplete | None = None, - verifier: Incomplete | None = None, + rsa_key=None, + verifier=None, client_class: type[Client] | None = None, force_include_body: bool = False, *, encoding: str = "utf-8", - nonce: Incomplete | None = None, - timestamp: Incomplete | None = None, + nonce=None, + timestamp=None, ) -> None: ... @property def token(self) -> _TokenDict: ... @@ -58,8 +58,8 @@ class OAuth1Session(requests.Session): def token(self, value: _TokenDict) -> None: ... @property def authorized(self) -> bool: ... - def authorization_url(self, url: str, request_token: Incomplete | None = None, **kwargs) -> str: ... - def fetch_request_token(self, url: str, realm: Incomplete | None = None, **request_kwargs) -> _ParsedToken: ... - def fetch_access_token(self, url: str, verifier: Incomplete | None = None, **request_kwargs) -> _ParsedToken: ... + def authorization_url(self, url: str, request_token=None, **kwargs) -> str: ... + def fetch_request_token(self, url: str, realm=None, **request_kwargs) -> _ParsedToken: ... + def fetch_access_token(self, url: str, verifier=None, **request_kwargs) -> _ParsedToken: ... def parse_authorization_response(self, url: str) -> _ParsedToken: ... def rebuild_auth(self, prepared_request: requests.PreparedRequest, response: requests.Response) -> None: ... diff --git a/stubs/requests-oauthlib/requests_oauthlib/oauth2_auth.pyi b/stubs/requests-oauthlib/requests_oauthlib/oauth2_auth.pyi index fb241519eeb1..9bd5a5258562 100644 --- a/stubs/requests-oauthlib/requests_oauthlib/oauth2_auth.pyi +++ b/stubs/requests-oauthlib/requests_oauthlib/oauth2_auth.pyi @@ -1,9 +1,5 @@ -from _typeshed import Incomplete - from oauthlib.oauth2 import Client from requests.auth import AuthBase class OAuth2(AuthBase): - def __init__( - self, client_id: Incomplete | None = None, client: Client | None = None, token: Incomplete | None = None - ) -> None: ... + def __init__(self, client_id=None, client: Client | None = None, token=None) -> None: ... diff --git a/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi b/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi index d2bc3d5b58a6..300230fd1ce3 100644 --- a/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi +++ b/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi @@ -38,16 +38,16 @@ class OAuth2Session(requests.Session): compliance_hook: _ComplianceHooks def __init__( self, - client_id: Incomplete | None = None, + client_id=None, client: Client | None = None, auto_refresh_url: str | None = None, auto_refresh_kwargs: dict[str, Any] | None = None, - scope: Incomplete | None = None, - redirect_uri: Incomplete | None = None, - token: Incomplete | None = None, - state: Incomplete | None = None, - token_updater: Incomplete | None = None, - pkce: Incomplete | None = None, + scope=None, + redirect_uri=None, + token=None, + state=None, + token_updater=None, + pkce=None, **kwargs, ) -> None: ... @property @@ -73,38 +73,38 @@ class OAuth2Session(requests.Session): def access_token(self) -> None: ... @property def authorized(self) -> bool: ... - def authorization_url(self, url: str, state: Incomplete | None = None, **kwargs) -> tuple[str, str]: ... + def authorization_url(self, url: str, state=None, **kwargs) -> tuple[str, str]: ... def fetch_token( self, token_url: str, - code: Incomplete | None = None, - authorization_response: Incomplete | None = None, + code=None, + authorization_response=None, body: str = "", - auth: Incomplete | None = None, - username: Incomplete | None = None, - password: Incomplete | None = None, + auth=None, + username=None, + password=None, method: str = "POST", force_querystring: bool = False, - timeout: Incomplete | None = None, - headers: Incomplete | None = None, + timeout=None, + headers=None, verify: bool | None = None, - proxies: Incomplete | None = None, - include_client_id: Incomplete | None = None, - client_secret: Incomplete | None = None, - cert: Incomplete | None = None, + proxies=None, + include_client_id=None, + client_secret=None, + cert=None, **kwargs, ) -> _Token: ... def token_from_fragment(self, authorization_response: str) -> _Token: ... def refresh_token( self, token_url: str, - refresh_token: Incomplete | None = None, + refresh_token=None, body: str = "", - auth: Incomplete | None = None, - timeout: Incomplete | None = None, - headers: Incomplete | None = None, + auth=None, + timeout=None, + headers=None, verify: bool | None = None, - proxies: Incomplete | None = None, + proxies=None, **kwargs, ) -> _Token: ... def request( # type: ignore[override] @@ -114,8 +114,8 @@ class OAuth2Session(requests.Session): data: requests.sessions._Data | None = None, headers: requests.sessions._HeadersUpdateMapping | None = None, withhold_token: bool = False, - client_id: Incomplete | None = None, - client_secret: Incomplete | None = None, + client_id=None, + client_secret=None, files: requests.sessions._Files | None = None, *, params: requests.sessions._Params | None = None, @@ -128,7 +128,7 @@ class OAuth2Session(requests.Session): stream: bool | None = None, verify: requests.sessions._Verify | None = None, cert: requests.sessions._Cert | None = None, - json: Incomplete | None = None, + json=None, ) -> requests.Response: ... @overload def register_compliance_hook(self, hook_type: Literal["access_token_response"], hook: _AccessTokenResponseHook) -> None: ... diff --git a/stubs/seaborn/seaborn/matrix.pyi b/stubs/seaborn/seaborn/matrix.pyi index f7ba705584bd..3a9a25e54590 100644 --- a/stubs/seaborn/seaborn/matrix.pyi +++ b/stubs/seaborn/seaborn/matrix.pyi @@ -117,8 +117,8 @@ class ClusterGrid(Grid): z_score: int | None = None, standard_scale: int | None = None, figsize: tuple[float, float] | None = None, - row_colors: Incomplete | None = None, - col_colors: Incomplete | None = None, + row_colors=None, + col_colors=None, mask: NDArray[np.bool_] | DataFrame | None = None, dendrogram_ratio: float | tuple[float, float] | None = None, colors_ratio: float | tuple[float, float] | None = None, @@ -185,8 +185,8 @@ def clustermap( col_cluster: bool = True, row_linkage: NDArray[Incomplete] | None = None, col_linkage: NDArray[Incomplete] | None = None, - row_colors: Incomplete | None = None, - col_colors: Incomplete | None = None, + row_colors=None, + col_colors=None, mask: NDArray[np.bool_] | DataFrame | None = None, dendrogram_ratio: float | tuple[float, float] = 0.2, colors_ratio: float | tuple[float, float] = 0.03, diff --git a/stubs/setuptools/setuptools/_distutils/dist.pyi b/stubs/setuptools/setuptools/_distutils/dist.pyi index 4552c94d8364..2757b725f582 100644 --- a/stubs/setuptools/setuptools/_distutils/dist.pyi +++ b/stubs/setuptools/setuptools/_distutils/dist.pyi @@ -96,9 +96,7 @@ class Distribution: command_obj: dict[str, Command] have_run: dict[str, bool] want_user_cfg: bool - def dump_option_dicts( - self, header: Incomplete | None = None, commands: Incomplete | None = None, indent: str = "" - ) -> None: ... + def dump_option_dicts(self, header=None, commands=None, indent: str = "") -> None: ... def find_config_files(self): ... commands: Incomplete def parse_command_line(self): ... diff --git a/stubs/setuptools/setuptools/archive_util.pyi b/stubs/setuptools/setuptools/archive_util.pyi index 600586a65578..acadce09a7ca 100644 --- a/stubs/setuptools/setuptools/archive_util.pyi +++ b/stubs/setuptools/setuptools/archive_util.pyi @@ -16,7 +16,7 @@ __all__ = [ class UnrecognizedFormat(DistutilsError): ... def default_filter(src, dst): ... -def unpack_archive(filename, extract_dir, progress_filter=..., drivers: Incomplete | None = None) -> None: ... +def unpack_archive(filename, extract_dir, progress_filter=..., drivers=None) -> None: ... def unpack_directory(filename, extract_dir, progress_filter=...) -> None: ... def unpack_zipfile(filename, extract_dir, progress_filter=...) -> None: ... def unpack_tarfile(filename, extract_dir, progress_filter=...): ... diff --git a/stubs/setuptools/setuptools/command/build_ext.pyi b/stubs/setuptools/setuptools/command/build_ext.pyi index 85c477b0366e..34366afb3ee0 100644 --- a/stubs/setuptools/setuptools/command/build_ext.pyi +++ b/stubs/setuptools/setuptools/command/build_ext.pyi @@ -38,14 +38,14 @@ def link_shared_object( self, objects, output_libname, - output_dir: Incomplete | None = None, - libraries: Incomplete | None = None, - library_dirs: Incomplete | None = None, - runtime_library_dirs: Incomplete | None = None, - export_symbols: Incomplete | None = None, + output_dir=None, + libraries=None, + library_dirs=None, + runtime_library_dirs=None, + export_symbols=None, debug: bool = False, - extra_preargs: Incomplete | None = None, - extra_postargs: Incomplete | None = None, - build_temp: Incomplete | None = None, - target_lang: Incomplete | None = None, + extra_preargs=None, + extra_postargs=None, + build_temp=None, + target_lang=None, ) -> None: ... diff --git a/stubs/setuptools/setuptools/depends.pyi b/stubs/setuptools/setuptools/depends.pyi index c0ddba05e919..54ddd352768c 100644 --- a/stubs/setuptools/setuptools/depends.pyi +++ b/stubs/setuptools/setuptools/depends.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import IO, Any, Literal, TypeVar _T = TypeVar("_T") @@ -10,22 +9,12 @@ def find_module( ) -> tuple[IO[Any], str | None, tuple[str, Literal["", "r", "rb"], Literal[7, 6, 1, 2, 3, -1]]]: ... class Require: - def __init__( - self, - name, - requested_version, - module, - homepage: str = "", - attribute: Incomplete | None = None, - format: Incomplete | None = None, - ) -> None: ... + def __init__(self, name, requested_version, module, homepage: str = "", attribute=None, format=None) -> None: ... def full_name(self): ... def version_ok(self, version): ... - def get_version( - self, paths: Incomplete | None = None, default: _T | Literal["unknown"] = "unknown" - ) -> _T | Literal["unknown"] | None | Any: ... - def is_present(self, paths: Incomplete | None = None): ... - def is_current(self, paths: Incomplete | None = None): ... + def get_version(self, paths=None, default: _T | Literal["unknown"] = "unknown") -> _T | Literal["unknown"] | None | Any: ... + def is_present(self, paths=None): ... + def is_current(self, paths=None): ... -def get_module_constant(module, symbol, default: _T | int = -1, paths: Incomplete | None = None) -> _T | int | None | Any: ... +def get_module_constant(module, symbol, default: _T | int = -1, paths=None) -> _T | int | None | Any: ... def extract_constant(code, symbol, default: _T | int = -1) -> _T | int | None | Any: ... diff --git a/stubs/tensorflow/tensorflow/__init__.pyi b/stubs/tensorflow/tensorflow/__init__.pyi index 647e29ab0988..502113f1ce9a 100644 --- a/stubs/tensorflow/tensorflow/__init__.pyi +++ b/stubs/tensorflow/tensorflow/__init__.pyi @@ -161,7 +161,7 @@ class Variable(Tensor, metaclass=_VariableMetaclass): name: str | None = None, # Real type is VariableDef protobuf type. Can be added after adding script # to generate tensorflow protobuf stubs with mypy-protobuf. - variable_def: Incomplete | None = None, + variable_def=None, dtype: DTypeLike | None = None, import_scope: str | None = None, constraint: Callable[[Tensor], Tensor] | None = None, @@ -203,7 +203,7 @@ class Operation: control_inputs: Iterable[Tensor | Operation] | None = None, input_types: Iterable[DType] | None = None, original_op: Operation | None = None, - op_def: Incomplete | None = None, + op_def=None, ) -> None: ... @property def inputs(self) -> list[Tensor]: ... diff --git a/stubs/tensorflow/tensorflow/data/__init__.pyi b/stubs/tensorflow/tensorflow/data/__init__.pyi index 37520262c444..329b85a2967c 100644 --- a/stubs/tensorflow/tensorflow/data/__init__.pyi +++ b/stubs/tensorflow/tensorflow/data/__init__.pyi @@ -187,7 +187,7 @@ class Dataset(ABC, Generic[_T1_co]): path: str, compression: _CompressionTypes = None, shard_func: Callable[[_T1_co], int] | None = None, - checkpoint_args: Incomplete | None = None, + checkpoint_args=None, ) -> None: ... def scan( self, initial_state: _T2, scan_func: Callable[[_T2, _T1_co], tuple[_T2, _T3]], name: str | None = None diff --git a/stubs/tensorflow/tensorflow/keras/losses.pyi b/stubs/tensorflow/tensorflow/keras/losses.pyi index e6ea69e47553..ebb96740637e 100644 --- a/stubs/tensorflow/tensorflow/keras/losses.pyi +++ b/stubs/tensorflow/tensorflow/keras/losses.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from abc import ABC, abstractmethod from collections.abc import Callable from typing import Any, Final, Literal, TypeVar, overload @@ -14,9 +13,7 @@ from tensorflow.keras.metrics import ( class Loss(ABC): reduction: _ReductionValues name: str | None - def __init__( - self, name: str | None = None, reduction: _ReductionValues = "sum_over_batch_size", dtype: Incomplete | None = None - ) -> None: ... + def __init__(self, name: str | None = None, reduction: _ReductionValues = "sum_over_batch_size", dtype=None) -> None: ... @abstractmethod def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... @classmethod @@ -34,7 +31,7 @@ class BinaryCrossentropy(Loss): axis: int = -1, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "binary_crossentropy", - dtype: Incomplete | None = None, + dtype=None, ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... @@ -49,7 +46,7 @@ class BinaryFocalCrossentropy(Loss): axis: int = -1, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "binary_focal_crossentropy", - dtype: Incomplete | None = None, + dtype=None, ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... @@ -61,16 +58,13 @@ class CategoricalCrossentropy(Loss): axis: int = -1, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "categorical_crossentropy", - dtype: Incomplete | None = None, + dtype=None, ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class CategoricalHinge(Loss): def __init__( - self, - reduction: _ReductionValues = "sum_over_batch_size", - name: str | None = "categorical_hinge", - dtype: Incomplete | None = None, + self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "categorical_hinge", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... @@ -80,81 +74,58 @@ class CosineSimilarity(Loss): axis: int = -1, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "cosine_similarity", - dtype: Incomplete | None = None, + dtype=None, ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class Hinge(Loss): - def __init__( - self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "hinge", dtype: Incomplete | None = None - ) -> None: ... + def __init__(self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "hinge", dtype=None) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class Huber(Loss): def __init__( - self, - delta: float = 1.0, - reduction: _ReductionValues = "sum_over_batch_size", - name: str | None = "huber_loss", - dtype: Incomplete | None = None, + self, delta: float = 1.0, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "huber_loss", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class KLDivergence(Loss): def __init__( - self, - reduction: _ReductionValues = "sum_over_batch_size", - name: str | None = "kl_divergence", - dtype: Incomplete | None = None, + self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "kl_divergence", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class LogCosh(Loss): def __init__( - self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "log_cosh", dtype: Incomplete | None = None + self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "log_cosh", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class MeanAbsoluteError(Loss): def __init__( - self, - reduction: _ReductionValues = "sum_over_batch_size", - name: str | None = "mean_absolute_error", - dtype: Incomplete | None = None, + self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "mean_absolute_error", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class MeanAbsolutePercentageError(Loss): def __init__( - self, - reduction: _ReductionValues = "sum_over_batch_size", - name: str | None = "mean_absolute_percentage_error", - dtype: Incomplete | None = None, + self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "mean_absolute_percentage_error", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class MeanSquaredError(Loss): def __init__( - self, - reduction: _ReductionValues = "sum_over_batch_size", - name: str | None = "mean_squared_error", - dtype: Incomplete | None = None, + self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "mean_squared_error", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class MeanSquaredLogarithmicError(Loss): def __init__( - self, - reduction: _ReductionValues = "sum_over_batch_size", - name: str | None = "mean_squared_logarithmic_error", - dtype: Incomplete | None = None, + self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "mean_squared_logarithmic_error", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class Poisson(Loss): - def __init__( - self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "poisson", dtype: Incomplete | None = None - ) -> None: ... + def __init__(self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "poisson", dtype=None) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class SparseCategoricalCrossentropy(Loss): @@ -164,16 +135,13 @@ class SparseCategoricalCrossentropy(Loss): ignore_class: int | None = None, reduction: _ReductionValues = "sum_over_batch_size", name: str = "sparse_categorical_crossentropy", - dtype: Incomplete | None = None, + dtype=None, ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... class SquaredHinge(Loss): def __init__( - self, - reduction: _ReductionValues = "sum_over_batch_size", - name: str | None = "squared_hinge", - dtype: Incomplete | None = None, + self, reduction: _ReductionValues = "sum_over_batch_size", name: str | None = "squared_hinge", dtype=None ) -> None: ... def call(self, y_true: Tensor, y_pred: Tensor) -> Tensor: ... diff --git a/stubs/tensorflow/tensorflow/keras/models.pyi b/stubs/tensorflow/tensorflow/keras/models.pyi index 079066d4bf47..afbd68461ac5 100644 --- a/stubs/tensorflow/tensorflow/keras/models.pyi +++ b/stubs/tensorflow/tensorflow/keras/models.pyi @@ -22,9 +22,7 @@ class Model(Layer[_InputT_contra, _OutputT_co]): optimizer: Optimizer | None # This is actually TensorFlowTrainer.loss @deprecated("Instead, use `model.compute_loss(x, y, y_pred, sample_weight)`.") - def loss( - self, y: TensorCompatible | None, y_pred: TensorCompatible | None, sample_weight: Incomplete | None = None - ) -> tf.Tensor | None: ... + def loss(self, y: TensorCompatible | None, y_pred: TensorCompatible | None, sample_weight=None) -> tf.Tensor | None: ... stop_training: bool def __new__(cls, *args: Any, **kwargs: Any) -> Model[_InputT_contra, _OutputT_co]: ... @@ -67,11 +65,11 @@ class Model(Layer[_InputT_contra, _OutputT_co]): x: TensorCompatible | None = None, y: TensorCompatible | None = None, y_pred: TensorCompatible | None = None, - sample_weight: Incomplete | None = None, + sample_weight=None, training: bool = True, ) -> tf.Tensor | None: ... def compute_metrics( - self, x: TensorCompatible, y: TensorCompatible, y_pred: TensorCompatible, sample_weight: Incomplete | None = None + self, x: TensorCompatible, y: TensorCompatible, y_pred: TensorCompatible, sample_weight=None ) -> dict[str, float]: ... def get_metrics_result(self) -> dict[str, float]: ... def make_train_function(self, force: bool = False) -> Callable[[tf.data.Iterator[Incomplete]], dict[str, float]]: ... @@ -146,7 +144,7 @@ class Model(Layer[_InputT_contra, _OutputT_co]): def load_weights(self, filepath: str | Path, skip_mismatch: bool = False, *, by_name: bool = False) -> None: ... def get_config(self) -> dict[str, Any]: ... @classmethod - def from_config(cls, config: dict[str, Any], custom_objects: Incomplete | None = None) -> Self: ... + def from_config(cls, config: dict[str, Any], custom_objects=None) -> Self: ... def to_json(self, **kwargs: Any) -> str: ... @property def weights(self) -> list[Variable]: ... diff --git a/stubs/tensorflow/tensorflow/saved_model/__init__.pyi b/stubs/tensorflow/tensorflow/saved_model/__init__.pyi index 203d144c751f..c8244ba4f50e 100644 --- a/stubs/tensorflow/tensorflow/saved_model/__init__.pyi +++ b/stubs/tensorflow/tensorflow/saved_model/__init__.pyi @@ -71,8 +71,8 @@ class SaveOptions: experimental_custom_gradients: bool = True, experimental_image_format: bool = False, experimental_skip_saver: bool = False, - experimental_sharding_callback: Incomplete | None = None, - extra_tags: Incomplete | None = None, + experimental_sharding_callback=None, + extra_tags=None, ) -> None: ... def contains_saved_model(export_dir: str | Path) -> bool: ... diff --git a/stubs/tensorflow/tensorflow/summary.pyi b/stubs/tensorflow/tensorflow/summary.pyi index 70d9fb784b7b..07cbe539d92d 100644 --- a/stubs/tensorflow/tensorflow/summary.pyi +++ b/stubs/tensorflow/tensorflow/summary.pyi @@ -1,5 +1,4 @@ import abc -from _typeshed import Incomplete from collections.abc import Callable, Generator from contextlib import AbstractContextManager, contextmanager from typing import Literal @@ -56,6 +55,4 @@ def text(name: str, data: str | tf.Tensor, step: int | tf.Tensor | None = None, def trace_export(name: str, step: int | tf.Tensor | None = None, profiler_outdir: str | None = None) -> None: ... def trace_off() -> None: ... def trace_on(graph: bool = True, profiler: bool = False, profiler_outdir: str | None = None) -> None: ... -def write( - tag: str, tensor: tf.Tensor, step: int | tf.Tensor | None = None, metadata: Incomplete | None = None, name: str | None = None -) -> bool: ... +def write(tag: str, tensor: tf.Tensor, step: int | tf.Tensor | None = None, metadata=None, name: str | None = None) -> bool: ... diff --git a/stubs/tensorflow/tensorflow/train/__init__.pyi b/stubs/tensorflow/tensorflow/train/__init__.pyi index c40249a92c5e..685accb4767c 100644 --- a/stubs/tensorflow/tensorflow/train/__init__.pyi +++ b/stubs/tensorflow/tensorflow/train/__init__.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Callable from typing import Any, TypeVar from typing_extensions import Self @@ -31,7 +30,7 @@ class CheckpointOptions: experimental_write_callbacks: None | list[Callable[[str], object] | Callable[[], object]] = None, enable_async: bool = False, experimental_skip_slot_variables: bool = False, - experimental_sharding_callback: Incomplete | None = None, + experimental_sharding_callback=None, ) -> None: ... _T = TypeVar("_T", bound=list[str] | tuple[str] | dict[int, str]) diff --git a/stubs/tqdm/tqdm/contrib/__init__.pyi b/stubs/tqdm/tqdm/contrib/__init__.pyi index 6a63b3b40969..7023bed256ab 100644 --- a/stubs/tqdm/tqdm/contrib/__init__.pyi +++ b/stubs/tqdm/tqdm/contrib/__init__.pyi @@ -10,6 +10,6 @@ class DummyTqdmFile(ObjectWrapper): def write(self, x, nolock: bool = False) -> None: ... def __del__(self) -> None: ... -def tenumerate(iterable, start: int = 0, total: Incomplete | None = None, tqdm_class: type[Incomplete] = ..., **tqdm_kwargs): ... +def tenumerate(iterable, start: int = 0, total=None, tqdm_class: type[Incomplete] = ..., **tqdm_kwargs): ... def tzip(iter1, *iter2plus, **tqdm_kwargs) -> Generator[Incomplete, None, None]: ... def tmap(function: Callable[..., Incomplete], *sequences, **tqdm_kwargs) -> Generator[Incomplete, None, None]: ... diff --git a/stubs/tqdm/tqdm/keras.pyi b/stubs/tqdm/tqdm/keras.pyi index f14d9be2a38b..7548952fb794 100644 --- a/stubs/tqdm/tqdm/keras.pyi +++ b/stubs/tqdm/tqdm/keras.pyi @@ -29,7 +29,7 @@ class _Callback: class TqdmCallback(_Callback): @staticmethod - def bar2callback(bar, pop: Incomplete | None = None, delta=...): ... + def bar2callback(bar, pop=None, delta=...): ... tqdm_class: Incomplete epoch_bar: Incomplete on_epoch_end: Incomplete @@ -37,15 +37,7 @@ class TqdmCallback(_Callback): verbose: Incomplete batch_bar: Incomplete on_batch_end: Incomplete - def __init__( - self, - epochs: Incomplete | None = None, - data_size: Incomplete | None = None, - batch_size: Incomplete | None = None, - verbose: int = 1, - tqdm_class=..., - **tqdm_kwargs, - ) -> None: ... + def __init__(self, epochs=None, data_size=None, batch_size=None, verbose: int = 1, tqdm_class=..., **tqdm_kwargs) -> None: ... def on_train_begin(self, *_, **__) -> None: ... def on_epoch_begin(self, epoch, *_, **__) -> None: ... def on_train_end(self, *_, **__) -> None: ... diff --git a/stubs/tqdm/tqdm/std.pyi b/stubs/tqdm/tqdm/std.pyi index 8ffbb0eaa60e..e5e84eeec8a4 100644 --- a/stubs/tqdm/tqdm/std.pyi +++ b/stubs/tqdm/tqdm/std.pyi @@ -23,7 +23,7 @@ class TqdmTypeError(TypeError): ... class TqdmKeyError(KeyError): ... class TqdmWarning(Warning): - def __init__(self, msg, fp_write: Incomplete | None = None, *a, **k) -> None: ... + def __init__(self, msg, fp_write=None, *a, **k) -> None: ... class TqdmExperimentalWarning(TqdmWarning, FutureWarning): ... class TqdmDeprecationWarning(TqdmWarning, DeprecationWarning): ... diff --git a/stubs/tqdm/tqdm/tk.pyi b/stubs/tqdm/tqdm/tk.pyi index e8a888d25205..84f018692a3c 100644 --- a/stubs/tqdm/tqdm/tk.pyi +++ b/stubs/tqdm/tqdm/tk.pyi @@ -85,7 +85,7 @@ class tqdm_tk(std_tqdm[_T]): desc: Incomplete def set_description_str(self, desc: str | None = None, refresh: bool | None = True) -> None: ... def cancel(self) -> None: ... - def reset(self, total: Incomplete | None = None) -> None: ... + def reset(self, total=None) -> None: ... def ttkrange(*args, **kwargs) -> tqdm_tk[int]: ... diff --git a/stubs/vobject/vobject/base.pyi b/stubs/vobject/vobject/base.pyi index 11cc2cf30e13..931aabc870ce 100644 --- a/stubs/vobject/vobject/base.pyi +++ b/stubs/vobject/vobject/base.pyi @@ -22,7 +22,7 @@ class VBase: behavior: Incomplete | None parentBehavior: Incomplete | None isNative: bool - def __init__(self, group: Incomplete | None = None) -> None: ... + def __init__(self, group=None) -> None: ... def copy(self, copyit: VBase) -> None: ... def validate(self, *args, **kwds) -> bool: ... def getChildren(self) -> list[Incomplete]: ... @@ -36,18 +36,10 @@ class VBase: # Use Any because args and kwargs are passed to the behavior object @overload def serialize( - self, - buf: None = None, - lineLength: int = 75, - validate: bool = True, - behavior: Incomplete | None = None, - *args: Any, - **kwargs: Any, + self, buf: None = None, lineLength: int = 75, validate: bool = True, behavior=None, *args: Any, **kwargs: Any ) -> str: ... @overload - def serialize( - self, buf: _W, lineLength: int = 75, validate: bool = True, behavior: Incomplete | None = None, *args: Any, **kwargs: Any - ) -> _W: ... + def serialize(self, buf: _W, lineLength: int = 75, validate: bool = True, behavior=None, *args: Any, **kwargs: Any) -> _W: ... def toVName(name, stripNum: int = 0, upper: bool = False): ... @@ -60,16 +52,7 @@ class ContentLine(VBase): lineNumber: Incomplete value: Incomplete def __init__( - self, - name, - params, - value, - group: Incomplete | None = None, - encoded: bool = False, - isNative: bool = False, - lineNumber: Incomplete | None = None, - *args, - **kwds, + self, name, params, value, group=None, encoded: bool = False, isNative: bool = False, lineNumber=None, *args, **kwds ) -> None: ... @classmethod def duplicate(cls, copyit): ... @@ -86,7 +69,7 @@ class Component(VBase): contents: dict[str, list[VBase]] name: Incomplete useBegin: bool - def __init__(self, name: Incomplete | None = None, *args, **kwds) -> None: ... + def __init__(self, name=None, *args, **kwds) -> None: ... @classmethod def duplicate(cls, copyit): ... def copy(self, copyit) -> None: ... @@ -95,7 +78,7 @@ class Component(VBase): normal_attributes: Incomplete def __setattr__(self, name: str, value) -> None: ... def __delattr__(self, name: str) -> None: ... - def getChildValue(self, childName, default: Incomplete | None = None, childNumber: int = 0): ... + def getChildValue(self, childName, default=None, childNumber: int = 0): ... @overload def add(self, objOrName: _V, group: str | None = None) -> _V: ... @overload @@ -120,7 +103,7 @@ class Component(VBase): class VObjectError(Exception): msg: Incomplete lineNumber: Incomplete - def __init__(self, msg, lineNumber: Incomplete | None = None) -> None: ... + def __init__(self, msg, lineNumber=None) -> None: ... class ParseError(VObjectError): ... class ValidateError(VObjectError): ... @@ -133,14 +116,14 @@ line_re: Incomplete begin_re: Incomplete def parseParams(string): ... -def parseLine(line, lineNumber: Incomplete | None = None): ... +def parseLine(line, lineNumber=None): ... wrap_re: Incomplete logical_lines_re: Incomplete testLines: str def getLogicalLines(fp, allowQP: bool = True) -> None: ... -def textLineToContentLine(text, n: Incomplete | None = None): ... +def textLineToContentLine(text, n=None): ... def dquoteEscape(param): ... def foldOneLine(outbuf, input, lineLength: int = 75) -> None: ... def defaultSerialize(obj, buf, lineLength): ... @@ -158,7 +141,7 @@ def readComponents( streamOrString, validate: bool = False, transform: bool = True, ignoreUnreadable: bool = False, allowQP: bool = False ) -> Iterator[Component]: ... def readOne(stream, validate: bool = False, transform: bool = True, ignoreUnreadable: bool = False, allowQP: bool = False): ... -def registerBehavior(behavior, name: Incomplete | None = None, default: bool = False, id: Incomplete | None = None) -> None: ... -def getBehavior(name, id: Incomplete | None = None): ... -def newFromBehavior(name, id: Incomplete | None = None): ... +def registerBehavior(behavior, name=None, default: bool = False, id=None) -> None: ... +def getBehavior(name, id=None): ... +def newFromBehavior(name, id=None): ... def backslashEscape(s): ... diff --git a/stubs/vobject/vobject/hcalendar.pyi b/stubs/vobject/vobject/hcalendar.pyi index bbebf71bd65f..589e7feef2d7 100644 --- a/stubs/vobject/vobject/hcalendar.pyi +++ b/stubs/vobject/vobject/hcalendar.pyi @@ -1,8 +1,6 @@ -from _typeshed import Incomplete - from .icalendar import VCalendar2_0 class HCalendar(VCalendar2_0): name: str @classmethod - def serialize(cls, obj, buf: Incomplete | None = None, lineLength: Incomplete | None = None, validate: bool = True): ... + def serialize(cls, obj, buf=None, lineLength=None, validate: bool = True): ... diff --git a/stubs/vobject/vobject/icalendar.pyi b/stubs/vobject/vobject/icalendar.pyi index 0071b69745f3..0f2441e919f0 100644 --- a/stubs/vobject/vobject/icalendar.pyi +++ b/stubs/vobject/vobject/icalendar.pyi @@ -27,7 +27,7 @@ class TimezoneComponent(Component): tzinfo: Incomplete name: str useBegin: bool - def __init__(self, tzinfo: Incomplete | None = None, *args, **kwds) -> None: ... + def __init__(self, tzinfo=None, *args, **kwds) -> None: ... @classmethod def registerTzinfo(cls, tzinfo): ... def gettzinfo(self): ... @@ -220,9 +220,9 @@ def stringToDateTime(s, tzinfo: datetime.tzinfo | None = None, strict: bool = Fa escapableCharList: str -def stringToTextValues(s, listSeparator: str = ",", charList: Incomplete | None = None, strict: bool = False): ... +def stringToTextValues(s, listSeparator: str = ",", charList=None, strict: bool = False): ... def stringToDurations(s, strict: bool = False): ... def parseDtstart(contentline, allowSignatureMismatch: bool = False): ... -def stringToPeriod(s, tzinfo: Incomplete | None = None): ... +def stringToPeriod(s, tzinfo=None): ... def getTransition(transitionTo, year, tzinfo): ... def tzinfo_eq(tzinfo1, tzinfo2, startYear: int = 2000, endYear: int = 2020): ... diff --git a/stubs/vobject/vobject/vcard.pyi b/stubs/vobject/vobject/vcard.pyi index 803acb03e4d7..f70f98b6160b 100644 --- a/stubs/vobject/vobject/vcard.pyi +++ b/stubs/vobject/vobject/vcard.pyi @@ -89,7 +89,7 @@ class Photo(VCardTextBehavior): def toListOrString(string): ... def splitFields(string): ... def toList(stringOrList): ... -def serializeFields(obj, order: Incomplete | None = None): ... +def serializeFields(obj, order=None): ... NAME_ORDER: Incomplete ADDRESS_ORDER: Incomplete diff --git a/stubs/workalendar/workalendar/africa/south_africa.pyi b/stubs/workalendar/workalendar/africa/south_africa.pyi index 6a0030dd2151..a7c7afbd1dda 100644 --- a/stubs/workalendar/workalendar/africa/south_africa.pyi +++ b/stubs/workalendar/workalendar/africa/south_africa.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import ClassVar from ..core import WesternCalendar @@ -6,7 +5,7 @@ from ..core import WesternCalendar class SouthAfrica(WesternCalendar): include_good_friday: ClassVar[bool] include_christmas: ClassVar[bool] - def holidays(self, year: Incomplete | None = None): ... + def holidays(self, year=None): ... def get_easter_monday_or_family_day(self, year): ... def get_fixed_holidays(self, year): ... def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/asia/china.pyi b/stubs/workalendar/workalendar/asia/china.pyi index b0934335f67b..c9b89624abfb 100644 --- a/stubs/workalendar/workalendar/asia/china.pyi +++ b/stubs/workalendar/workalendar/asia/china.pyi @@ -13,20 +13,6 @@ class China(ChineseNewYearCalendar): def __init__(self, *args, **kwargs) -> None: ... def get_calendar_holidays(self, year): ... def get_variable_days(self, year): ... - def is_working_day(self, day, extra_working_days: Incomplete | None = None, extra_holidays: Incomplete | None = None): ... - def add_working_days( - self, - day, - delta, - extra_working_days: Incomplete | None = None, - extra_holidays: Incomplete | None = None, - keep_datetime: bool = False, - ): ... - def sub_working_days( - self, - day, - delta, - extra_working_days: Incomplete | None = None, - extra_holidays: Incomplete | None = None, - keep_datetime: bool = False, - ): ... + def is_working_day(self, day, extra_working_days=None, extra_holidays=None): ... + def add_working_days(self, day, delta, extra_working_days=None, extra_holidays=None, keep_datetime: bool = False): ... + def sub_working_days(self, day, delta, extra_working_days=None, extra_holidays=None, keep_datetime: bool = False): ... diff --git a/stubs/workalendar/workalendar/core.pyi b/stubs/workalendar/workalendar/core.pyi index 9f083a4b5014..379712f18619 100644 --- a/stubs/workalendar/workalendar/core.pyi +++ b/stubs/workalendar/workalendar/core.pyi @@ -138,46 +138,25 @@ class CoreCalendar: def get_fixed_holidays(self, year): ... def get_variable_days(self, year): ... def get_calendar_holidays(self, year): ... - def holidays(self, year: Incomplete | None = None): ... + def holidays(self, year=None): ... def get_holiday_label(self, day): ... - def holidays_set(self, year: Incomplete | None = None): ... + def holidays_set(self, year=None): ... def get_weekend_days(self): ... - def is_working_day(self, day, extra_working_days: Incomplete | None = None, extra_holidays: Incomplete | None = None): ... - def is_holiday(self, day, extra_holidays: Incomplete | None = None): ... - def add_working_days( - self, - day, - delta, - extra_working_days: Incomplete | None = None, - extra_holidays: Incomplete | None = None, - keep_datetime: bool = False, - ): ... - def sub_working_days( - self, - day, - delta, - extra_working_days: Incomplete | None = None, - extra_holidays: Incomplete | None = None, - keep_datetime: bool = False, - ): ... + def is_working_day(self, day, extra_working_days=None, extra_holidays=None): ... + def is_holiday(self, day, extra_holidays=None): ... + def add_working_days(self, day, delta, extra_working_days=None, extra_holidays=None, keep_datetime: bool = False): ... + def sub_working_days(self, day, delta, extra_working_days=None, extra_holidays=None, keep_datetime: bool = False): ... def find_following_working_day(self, day): ... @staticmethod - def get_nth_weekday_in_month(year, month, weekday, n: int = 1, start: Incomplete | None = None): ... + def get_nth_weekday_in_month(year, month, weekday, n: int = 1, start=None): ... @staticmethod def get_last_weekday_in_month(year, month, weekday): ... @staticmethod def get_iso_week_date(year, week_nb, weekday=1): ... @staticmethod def get_first_weekday_after(day, weekday): ... - def get_working_days_delta( - self, - start, - end, - include_start: bool = False, - extra_working_days: Incomplete | None = None, - extra_holidays: Incomplete | None = None, - ): ... - def export_to_ical(self, period=[2000, 2030], target_path: Incomplete | None = None): ... + def get_working_days_delta(self, start, end, include_start: bool = False, extra_working_days=None, extra_holidays=None): ... + def export_to_ical(self, period=[2000, 2030], target_path=None): ... class Calendar(CoreCalendar): include_new_years_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/russia.pyi b/stubs/workalendar/workalendar/europe/russia.pyi index dca16c11e4ff..e82ebdb8c709 100644 --- a/stubs/workalendar/workalendar/europe/russia.pyi +++ b/stubs/workalendar/workalendar/europe/russia.pyi @@ -12,4 +12,4 @@ class Russia(OrthodoxCalendar): labour_day_label: ClassVar[str] def get_fixed_holidays(self, year): ... def get_calendar_holidays(self, year): ... - def is_working_day(self, day, extra_working_days: Incomplete | None = None, extra_holidays: Incomplete | None = None): ... + def is_working_day(self, day, extra_working_days=None, extra_holidays=None): ... diff --git a/stubs/workalendar/workalendar/registry.pyi b/stubs/workalendar/workalendar/registry.pyi index ae17a15a5561..b918ce9438a3 100644 --- a/stubs/workalendar/workalendar/registry.pyi +++ b/stubs/workalendar/workalendar/registry.pyi @@ -10,6 +10,6 @@ class IsoRegistry: def load_module_from_items(self, module_name, items) -> None: ... def get(self, iso_code): ... def get_subregions(self, iso_code): ... - def get_calendars(self, region_codes: Incomplete | None = None, include_subregions: bool = False): ... + def get_calendars(self, region_codes=None, include_subregions: bool = False): ... registry: IsoRegistry