basedpyright 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +2 -2
  2. package/dist/pyright-langserver.js +1 -1
  3. package/dist/pyright-langserver.js.map +1 -1
  4. package/dist/pyright.js +1 -1
  5. package/dist/pyright.js.map +1 -1
  6. package/dist/typeshed-fallback/README.md +10 -11
  7. package/dist/typeshed-fallback/commit.txt +1 -1
  8. package/dist/typeshed-fallback/stdlib/builtins.pyi +1 -0
  9. package/dist/typeshed-fallback/stdlib/dataclasses.pyi +4 -4
  10. package/dist/typeshed-fallback/stdlib/distutils/core.pyi +1 -1
  11. package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +3 -0
  12. package/dist/typeshed-fallback/stdlib/optparse.pyi +57 -54
  13. package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +2 -0
  14. package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +2 -0
  15. package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageSequence.pyi +11 -8
  16. package/dist/typeshed-fallback/stubs/croniter/croniter/croniter.pyi +5 -1
  17. package/dist/typeshed-fallback/stubs/docutils/docutils/nodes.pyi +84 -26
  18. package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +9 -2
  19. package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
  20. package/dist/typeshed-fallback/stubs/hvac/METADATA.toml +2 -0
  21. package/dist/typeshed-fallback/stubs/hvac/hvac/__init__.pyi +3 -0
  22. package/dist/typeshed-fallback/stubs/hvac/hvac/adapters.pyi +60 -0
  23. package/dist/typeshed-fallback/stubs/hvac/hvac/api/__init__.pyi +7 -0
  24. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/__init__.pyi +41 -0
  25. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/approle.pyi +54 -0
  26. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/aws.pyi +110 -0
  27. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/azure.pyi +49 -0
  28. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/cert.pyi +41 -0
  29. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/gcp.pyi +44 -0
  30. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/github.pyi +21 -0
  31. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/jwt.pyi +60 -0
  32. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/kubernetes.pyi +35 -0
  33. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/ldap.pyi +60 -0
  34. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi +15 -0
  35. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/oidc.pyi +35 -0
  36. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/okta.pyi +29 -0
  37. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/radius.pyi +23 -0
  38. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/token.pyi +74 -0
  39. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/userpass.pyi +15 -0
  40. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/__init__.pyi +39 -0
  41. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/active_directory.pyi +28 -0
  42. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/aws.pyi +43 -0
  43. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/azure.pyi +23 -0
  44. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/consul.pyi +23 -0
  45. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/database.pyi +47 -0
  46. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/gcp.pyi +73 -0
  47. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/identity.pyi +163 -0
  48. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/kv.pyi +18 -0
  49. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/kv_v1.pyi +11 -0
  50. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/kv_v2.pyi +37 -0
  51. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/pki.pyi +50 -0
  52. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/rabbitmq.pyi +18 -0
  53. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/ssh.pyi +73 -0
  54. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/transform.pyi +109 -0
  55. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/transit.pyi +114 -0
  56. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/__init__.pyi +63 -0
  57. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/audit.pyi +16 -0
  58. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/auth.pyi +30 -0
  59. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/capabilities.pyi +6 -0
  60. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/health.pyi +16 -0
  61. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/init.pyi +18 -0
  62. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/key.pyi +29 -0
  63. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/leader.pyi +5 -0
  64. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/lease.pyi +11 -0
  65. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/mount.pyi +36 -0
  66. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/namespace.pyi +6 -0
  67. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/policies.pyi +15 -0
  68. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/policy.pyi +7 -0
  69. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/quota.pyi +19 -0
  70. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/raft.pyi +18 -0
  71. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/seal.pyi +10 -0
  72. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/system_backend_mixin.pyi +8 -0
  73. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/wrapping.pyi +6 -0
  74. package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_base.pyi +7 -0
  75. package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_category.pyi +24 -0
  76. package/dist/typeshed-fallback/stubs/hvac/hvac/aws_utils.pyi +9 -0
  77. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/__init__.pyi +0 -0
  78. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/approle.pyi +4 -0
  79. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/aws.pyi +7 -0
  80. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/azure.pyi +3 -0
  81. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/client.pyi +8 -0
  82. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/gcp.pyi +8 -0
  83. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/identity.pyi +3 -0
  84. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/transit.pyi +12 -0
  85. package/dist/typeshed-fallback/stubs/hvac/hvac/exceptions.pyi +42 -0
  86. package/dist/typeshed-fallback/stubs/hvac/hvac/utils.pyi +45 -0
  87. package/dist/typeshed-fallback/stubs/hvac/hvac/v1/__init__.pyi +72 -0
  88. package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
  89. package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/flux_csv_parser.pyi +1 -0
  90. package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/query_api.pyi +12 -9
  91. package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/query_api_async.pyi +17 -9
  92. package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/util/helpers.pyi +4 -1
  93. package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/domain/organization.pyi +3 -3
  94. package/dist/typeshed-fallback/stubs/paho-mqtt/METADATA.toml +1 -0
  95. package/dist/typeshed-fallback/stubs/pika/pika/compat.pyi +4 -4
  96. package/dist/typeshed-fallback/stubs/pygit2/pygit2/__init__.pyi +8 -2
  97. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/relativedelta.pyi +2 -2
  98. package/dist/typeshed-fallback/stubs/pywin32/_win32typing.pyi +0 -3
  99. package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32evtlogutil.pyi +1 -1
  100. package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32pdhquery.pyi +1 -1
  101. package/dist/typeshed-fallback/stubs/pywin32/win32/odbc.pyi +12 -10
  102. package/dist/typeshed-fallback/stubs/pywin32/win32com/server/policy.pyi +1 -1
  103. package/dist/typeshed-fallback/stubs/requests-oauthlib/METADATA.toml +1 -1
  104. package/dist/typeshed-fallback/stubs/setuptools/distutils/archive_util.pyi +1 -0
  105. package/dist/typeshed-fallback/stubs/setuptools/distutils/ccompiler.pyi +1 -0
  106. package/dist/typeshed-fallback/stubs/setuptools/distutils/cmd.pyi +1 -0
  107. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/bdist_rpm.pyi +1 -0
  108. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/build.pyi +1 -0
  109. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/build_clib.pyi +1 -0
  110. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/build_ext.pyi +1 -0
  111. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/build_py.pyi +1 -0
  112. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/install.pyi +1 -0
  113. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/install_scripts.pyi +1 -0
  114. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/register.pyi +1 -0
  115. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/sdist.pyi +1 -0
  116. package/dist/typeshed-fallback/stubs/setuptools/distutils/command/upload.pyi +1 -0
  117. package/dist/typeshed-fallback/stubs/setuptools/distutils/config.pyi +1 -0
  118. package/dist/typeshed-fallback/stubs/setuptools/distutils/dep_util.pyi +1 -0
  119. package/dist/typeshed-fallback/stubs/setuptools/distutils/dist.pyi +1 -0
  120. package/dist/typeshed-fallback/stubs/setuptools/distutils/errors.pyi +1 -0
  121. package/dist/typeshed-fallback/stubs/setuptools/distutils/extension.pyi +1 -0
  122. package/dist/typeshed-fallback/stubs/setuptools/distutils/filelist.pyi +1 -0
  123. package/dist/typeshed-fallback/stubs/setuptools/distutils/sysconfig.pyi +1 -0
  124. package/dist/typeshed-fallback/stubs/setuptools/distutils/util.pyi +1 -0
  125. package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +1 -1
  126. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin
4
+
5
+ class Raft(SystemBackendMixin):
6
+ def join_raft_cluster(
7
+ self,
8
+ leader_api_addr,
9
+ retry: bool = False,
10
+ leader_ca_cert: Incomplete | None = None,
11
+ leader_client_cert: Incomplete | None = None,
12
+ leader_client_key: Incomplete | None = None,
13
+ ): ...
14
+ def read_raft_config(self): ...
15
+ def remove_raft_node(self, server_id): ...
16
+ def take_raft_snapshot(self): ...
17
+ def restore_raft_snapshot(self, snapshot): ...
18
+ def force_restore_raft_snapshot(self, snapshot): ...
@@ -0,0 +1,10 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin
4
+
5
+ class Seal(SystemBackendMixin):
6
+ def is_sealed(self): ...
7
+ def read_seal_status(self): ...
8
+ def seal(self): ...
9
+ def submit_unseal_key(self, key: Incomplete | None = None, reset: bool = False, migrate: bool = False): ...
10
+ def submit_unseal_keys(self, keys, migrate: bool = False): ...
@@ -0,0 +1,8 @@
1
+ from _typeshed import Incomplete
2
+ from abc import ABCMeta
3
+
4
+ from hvac.api.vault_api_base import VaultApiBase
5
+
6
+ logger: Incomplete
7
+
8
+ class SystemBackendMixin(VaultApiBase, metaclass=ABCMeta): ...
@@ -0,0 +1,6 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin
4
+
5
+ class Wrapping(SystemBackendMixin):
6
+ def unwrap(self, token: Incomplete | None = None): ...
@@ -0,0 +1,7 @@
1
+ from abc import ABCMeta
2
+ from logging import Logger
3
+
4
+ logger: Logger
5
+
6
+ class VaultApiBase(metaclass=ABCMeta):
7
+ def __init__(self, adapter) -> None: ...
@@ -0,0 +1,24 @@
1
+ from abc import ABCMeta, abstractmethod
2
+ from collections.abc import Sequence
3
+ from logging import Logger
4
+
5
+ from hvac.adapters import Adapter
6
+ from hvac.api.vault_api_base import VaultApiBase
7
+
8
+ logger: Logger
9
+
10
+ class VaultApiCategory(VaultApiBase, metaclass=ABCMeta):
11
+ implemented_class_names: Sequence[str]
12
+ def __init__(self, adapter: Adapter) -> None: ...
13
+ def __getattr__(self, item): ...
14
+ @property
15
+ def adapter(self) -> Adapter: ...
16
+ @adapter.setter
17
+ def adapter(self, adapter: Adapter) -> None: ...
18
+ @property
19
+ @abstractmethod
20
+ def implemented_classes(self): ...
21
+ @property
22
+ def unimplemented_classes(self) -> None: ...
23
+ @staticmethod
24
+ def get_private_attr_name(class_name): ...
@@ -0,0 +1,9 @@
1
+ class SigV4Auth:
2
+ access_key: str
3
+ secret_key: str
4
+ session_token: str | None
5
+ region: str
6
+ def __init__(self, access_key: str, secret_key: str, session_token: str | None = None, region: str = "us-east-1") -> None: ...
7
+ def add_auth(self, request) -> None: ...
8
+
9
+ def generate_sigv4_auth_request(header_value: str | None = None): ...
@@ -0,0 +1,4 @@
1
+ from collections.abc import Iterable
2
+
3
+ DEFAULT_MOUNT_POINT: str
4
+ ALLOWED_TOKEN_TYPES: Iterable[str]
@@ -0,0 +1,7 @@
1
+ from collections.abc import Iterable
2
+
3
+ DEFAULT_MOUNT_POINT: str
4
+ ALLOWED_CREDS_ENDPOINTS: Iterable[str]
5
+ ALLOWED_CREDS_TYPES: Iterable[str]
6
+ ALLOWED_IAM_ALIAS_TYPES: Iterable[str]
7
+ ALLOWED_EC2_ALIAS_TYPES: Iterable[str]
@@ -0,0 +1,3 @@
1
+ from collections.abc import Iterable
2
+
3
+ VALID_ENVIRONMENTS: Iterable[str]
@@ -0,0 +1,8 @@
1
+ from hvac.utils import _DeprecateProperty
2
+
3
+ DEPRECATED_PROPERTIES: dict[str, _DeprecateProperty]
4
+ DEFAULT_URL: str
5
+ VAULT_CACERT: str | None
6
+ VAULT_CAPATH: str | None
7
+ VAULT_CLIENT_CERT: str | None
8
+ VAULT_CLIENT_KEY: str | None
@@ -0,0 +1,8 @@
1
+ from collections.abc import Iterable
2
+
3
+ DEFAULT_MOUNT_POINT: str
4
+ ALLOWED_ROLE_TYPES: Iterable[str]
5
+ ALLOWED_SECRETS_TYPES: Iterable[str]
6
+ SERVICE_ACCOUNT_KEY_ALGORITHMS: Iterable[str]
7
+ SERVICE_ACCOUNT_KEY_TYPES: Iterable[str]
8
+ GCP_CERTS_ENDPOINT: str
@@ -0,0 +1,3 @@
1
+ from collections.abc import Iterable
2
+
3
+ ALLOWED_GROUP_TYPES: Iterable[str]
@@ -0,0 +1,12 @@
1
+ from collections.abc import Iterable
2
+ from re import Pattern
3
+
4
+ ALLOWED_KEY_TYPES: Iterable[str]
5
+ ALLOWED_EXPORT_KEY_TYPES: Iterable[str]
6
+ ALLOWED_DATA_KEY_TYPES: Iterable[str]
7
+ ALLOWED_DATA_KEY_BITS: Iterable[int]
8
+ ALLOWED_HASH_DATA_ALGORITHMS: Iterable[str]
9
+ ALLOWED_HASH_DATA_FORMATS: Iterable[str]
10
+ ALLOWED_SIGNATURE_ALGORITHMS: Iterable[str]
11
+ ALLOWED_MARSHALING_ALGORITHMS: Iterable[str]
12
+ ALLOWED_SALT_LENGTHS: Pattern[str]
@@ -0,0 +1,42 @@
1
+ from collections.abc import Iterable
2
+ from typing import Any
3
+ from typing_extensions import Self
4
+
5
+ class VaultError(Exception):
6
+ errors: Iterable[Any] | str | None
7
+ method: str | None
8
+ url: str | None
9
+ text: str | None
10
+ json: object
11
+ def __init__(
12
+ self,
13
+ message: str | None = None,
14
+ errors: Iterable[Any] | str | None = None,
15
+ method: str | None = None,
16
+ url: str | None = None,
17
+ text: str | None = None,
18
+ json: object | None = None,
19
+ ) -> None: ...
20
+ @classmethod
21
+ def from_status(
22
+ cls,
23
+ status_code: int,
24
+ message: str | None = ...,
25
+ errors: Iterable[Any] | str | None = ...,
26
+ method: str | None = ...,
27
+ url: str | None = ...,
28
+ text: str | None = ...,
29
+ json: object | None = ...,
30
+ ) -> Self: ...
31
+
32
+ class InvalidRequest(VaultError): ...
33
+ class Unauthorized(VaultError): ...
34
+ class Forbidden(VaultError): ...
35
+ class InvalidPath(VaultError): ...
36
+ class RateLimitExceeded(VaultError): ...
37
+ class InternalServerError(VaultError): ...
38
+ class VaultNotInitialized(VaultError): ...
39
+ class VaultDown(VaultError): ...
40
+ class UnexpectedError(VaultError): ...
41
+ class BadGateway(VaultError): ...
42
+ class ParamValidationError(VaultError): ...
@@ -0,0 +1,45 @@
1
+ from collections.abc import Callable, Iterable, Mapping
2
+ from typing import Any, NoReturn, TypedDict, TypeVar
3
+ from typing_extensions import NotRequired
4
+
5
+ class _DeprecateProperty(TypedDict):
6
+ to_be_removed_in_version: str
7
+ client_property: str
8
+ new_property: NotRequired[str]
9
+
10
+ _T = TypeVar("_T")
11
+ _K = TypeVar("_K")
12
+ _V = TypeVar("_V")
13
+
14
+ def raise_for_error(
15
+ method: str,
16
+ url: str,
17
+ status_code: int,
18
+ message: str | None = None,
19
+ errors: Iterable[Any] | str | None = None,
20
+ text: str | None = None,
21
+ json: object | None = None,
22
+ ) -> NoReturn: ...
23
+ def aliased_parameter(
24
+ name: str, *aliases: str, removed_in_version: str | None, position: int | None = None, raise_on_multiple: bool = True
25
+ ) -> Callable[..., Any]: ...
26
+ def generate_parameter_deprecation_message(
27
+ to_be_removed_in_version: str, old_parameter_name: str, new_parameter_name: str | None = None, extra_notes: str | None = None
28
+ ) -> str: ...
29
+ def generate_method_deprecation_message(
30
+ to_be_removed_in_version: str, old_method_name: str, method_name: str | None = None, module_name: str | None = None
31
+ ) -> str: ...
32
+ def generate_property_deprecation_message(
33
+ to_be_removed_in_version: str, old_name: str, new_name: str, new_attribute: str, module_name: str = "Client"
34
+ ) -> str: ...
35
+ def getattr_with_deprecated_properties(obj: object, item: str, deprecated_properties: dict[str, _DeprecateProperty]) -> Any: ...
36
+ def deprecated_method(to_be_removed_in_version: str, new_method: Callable[..., Any] | None = None) -> Callable[..., Any]: ...
37
+ def validate_list_of_strings_param(param_name: str, param_argument: Iterable[Any] | str) -> None: ...
38
+ def list_to_comma_delimited(list_param: Iterable[str] | None) -> str: ...
39
+ def get_token_from_env() -> str | None: ...
40
+ def comma_delimited_to_list(list_param: Iterable[_T]) -> Iterable[_T]: ...
41
+
42
+ # the docstring states that this function returns a bool, but the code does not return anything
43
+ def validate_pem_format(param_name: str, param_argument: str) -> None: ...
44
+ def remove_nones(params: Mapping[_K, _V | None]) -> Mapping[_K, _V]: ...
45
+ def format_url(format_str: str, *args: Any, **kwargs: Any) -> str: ...
@@ -0,0 +1,72 @@
1
+ from _typeshed import Incomplete
2
+ from typing import Any
3
+
4
+ from hvac.adapters import Adapter
5
+
6
+ has_hcl_parser: bool
7
+
8
+ class Client:
9
+ def __init__(
10
+ self,
11
+ url: str | None = None,
12
+ token: str | None = None,
13
+ cert: tuple[str, str] | None = None,
14
+ verify: bool | str | None = None,
15
+ timeout: int = 30,
16
+ proxies: dict[str, str] | None = None,
17
+ allow_redirects: bool = True,
18
+ session: Incomplete | None = None,
19
+ adapter: type[Adapter] = ...,
20
+ namespace: Incomplete | None = None,
21
+ **kwargs: Any,
22
+ ) -> None: ...
23
+ def __getattr__(self, name: str) -> Any: ...
24
+ @property
25
+ def adapter(self) -> Adapter: ...
26
+ @adapter.setter
27
+ def adapter(self, adapter: Adapter) -> None: ...
28
+ @property
29
+ def url(self) -> str: ...
30
+ @url.setter
31
+ def url(self, url: str) -> None: ...
32
+ @property
33
+ def token(self) -> str: ...
34
+ @token.setter
35
+ def token(self, token: str) -> None: ...
36
+ @property
37
+ def session(self): ...
38
+ @session.setter
39
+ def session(self, session) -> None: ...
40
+ @property
41
+ def allow_redirects(self) -> bool: ...
42
+ @allow_redirects.setter
43
+ def allow_redirects(self, allow_redirects: bool) -> None: ...
44
+ @property
45
+ def auth(self): ...
46
+ @property
47
+ def secrets(self): ...
48
+ @property
49
+ def sys(self): ...
50
+ @property
51
+ def generate_root_status(self): ...
52
+ @property
53
+ def key_status(self): ...
54
+ @property
55
+ def rekey_status(self): ...
56
+ @property
57
+ def ha_status(self): ...
58
+ @property
59
+ def seal_status(self): ...
60
+ def read(self, path: str, wrap_ttl: int | str | None = None): ...
61
+ def list(self, path: str): ...
62
+ def write(self, path: str, wrap_ttl: int | str | None, **kwargs: Any): ...
63
+ def write_data(self, path: str, *, data: dict[str, Any] | None = None, wrap_ttl: int | str | None = None): ...
64
+ def delete(self, path: str) -> None: ...
65
+ def get_policy(self, name: str, parse: bool = False): ...
66
+ def lookup_token(self, token: str | None = None, accessor: bool = False, wrap_ttl: int | str | None = None): ...
67
+ def revoke_token(self, token: str, orphan: bool = False, accessor: bool = False) -> None: ...
68
+ def renew_token(self, token: str, increment: bool | None = None, wrap_ttl: int | str | None = None): ...
69
+ def logout(self, revoke_token: bool = False) -> None: ...
70
+ def is_authenticated(self) -> bool: ...
71
+ def auth_cubbyhole(self, token: str): ...
72
+ def login(self, url: str, use_token: bool = True, **kwargs: Any): ...
@@ -1,4 +1,4 @@
1
- version = "1.40.*"
1
+ version = "1.41.*"
2
2
  upstream_repository = "https://github.com/influxdata/influxdb-client-python"
3
3
  # requires a version of urllib3 with a py.typed file
4
4
  requires = ["urllib3>=2"]
@@ -45,6 +45,7 @@ class FluxCsvParser:
45
45
  data_frame_index: list[str] | None = None,
46
46
  query_options: Incomplete | None = None,
47
47
  response_metadata_mode: FluxResponseMetadataMode = ...,
48
+ use_extension_dtypes: bool = False,
48
49
  ) -> None: ...
49
50
  def __enter__(self) -> Self: ...
50
51
  def __exit__(
@@ -1,10 +1,11 @@
1
- from _typeshed import Incomplete
1
+ from _typeshed import Incomplete, SupportsItems
2
2
  from collections.abc import Callable, Generator
3
3
  from typing import Any
4
4
 
5
5
  from influxdb_client import Dialect
6
6
  from influxdb_client.client._base import _BaseQueryApi
7
7
  from influxdb_client.client.flux_table import CSVIterator, FluxRecord, TableList
8
+ from influxdb_client.domain.organization import Organization
8
9
 
9
10
  class QueryOptions:
10
11
  profilers: Incomplete
@@ -20,29 +21,31 @@ class QueryApi(_BaseQueryApi):
20
21
  query: str,
21
22
  org: Incomplete | None = None,
22
23
  dialect: Dialect = ...,
23
- params: dict[Incomplete, Incomplete] | None = None,
24
+ params: SupportsItems[str, Incomplete] | None = None,
24
25
  ) -> CSVIterator: ...
25
26
  def query_raw(
26
- self, query: str, org: Incomplete | None = None, dialect=..., params: dict[Incomplete, Incomplete] | None = None
27
+ self, query: str, org: Incomplete | None = None, dialect=..., params: SupportsItems[str, Incomplete] | None = None
27
28
  ): ...
28
29
  def query(
29
- self, query: str, org: Incomplete | None = None, params: dict[Incomplete, Incomplete] | None = None
30
+ self, query: str, org: Incomplete | None = None, params: SupportsItems[str, Incomplete] | None = None
30
31
  ) -> TableList: ...
31
32
  def query_stream(
32
- self, query: str, org: Incomplete | None = None, params: dict[Incomplete, Incomplete] | None = None
33
+ self, query: str, org: Incomplete | None = None, params: SupportsItems[str, Incomplete] | None = None
33
34
  ) -> Generator[FluxRecord, Any, None]: ...
34
35
  def query_data_frame(
35
36
  self,
36
37
  query: str,
37
- org: Incomplete | None = None,
38
+ org: Organization | str | None = None,
38
39
  data_frame_index: list[str] | None = None,
39
- params: dict[Incomplete, Incomplete] | None = None,
40
+ params: SupportsItems[str, Incomplete] | None = None,
41
+ use_extension_dtypes: bool = False,
40
42
  ): ...
41
43
  def query_data_frame_stream(
42
44
  self,
43
45
  query: str,
44
- org: Incomplete | None = None,
46
+ org: Organization | str | None = None,
45
47
  data_frame_index: list[str] | None = None,
46
- params: dict[Incomplete, Incomplete] | None = None,
48
+ params: SupportsItems[str, Incomplete] | None = None,
49
+ use_extension_dtypes: bool = False,
47
50
  ): ...
48
51
  def __del__(self) -> None: ...
@@ -1,31 +1,39 @@
1
- from _typeshed import Incomplete
1
+ from _typeshed import Incomplete, SupportsItems
2
2
  from collections.abc import AsyncGenerator
3
3
 
4
4
  from influxdb_client.client._base import _BaseQueryApi
5
5
  from influxdb_client.client.flux_table import FluxRecord, TableList
6
+ from influxdb_client.domain.dialect import Dialect
7
+ from influxdb_client.domain.organization import Organization
6
8
 
7
9
  class QueryApiAsync(_BaseQueryApi):
8
10
  def __init__(self, influxdb_client, query_options=...) -> None: ...
9
11
  async def query(
10
- self, query: str, org: Incomplete | None = None, params: dict[Incomplete, Incomplete] | None = None
12
+ self, query: str, org: Incomplete | None = None, params: SupportsItems[str, Incomplete] | None = None
11
13
  ) -> TableList: ...
12
14
  async def query_stream(
13
- self, query: str, org: Incomplete | None = None, params: dict[Incomplete, Incomplete] | None = None
15
+ self, query: str, org: Incomplete | None = None, params: SupportsItems[str, Incomplete] | None = None
14
16
  ) -> AsyncGenerator[FluxRecord, None]: ...
15
17
  async def query_data_frame(
16
18
  self,
17
19
  query: str,
18
- org: Incomplete | None = None,
20
+ org: str | Organization | None = None,
19
21
  data_frame_index: list[str] | None = None,
20
- params: dict[Incomplete, Incomplete] | None = None,
22
+ params: SupportsItems[str, Incomplete] | None = None,
23
+ use_extension_dtypes: bool = False,
21
24
  ): ...
22
25
  async def query_data_frame_stream(
23
26
  self,
24
27
  query: str,
25
- org: Incomplete | None = None,
28
+ org: str | Organization | None = None,
26
29
  data_frame_index: list[str] | None = None,
27
- params: dict[Incomplete, Incomplete] | None = None,
30
+ params: SupportsItems[str, Incomplete] | None = None,
31
+ use_extension_dtypes: bool = False,
28
32
  ): ...
29
33
  async def query_raw(
30
- self, query: str, org: Incomplete | None = None, dialect=..., params: dict[Incomplete, Incomplete] | None = None
31
- ): ...
34
+ self,
35
+ query: str,
36
+ org: str | Organization | None = None,
37
+ dialect: Dialect = ...,
38
+ params: SupportsItems[str, Incomplete] | None = None,
39
+ ) -> str: ...
@@ -1 +1,4 @@
1
- def get_org_query_param(org, client, required_id: bool = False): ...
1
+ from influxdb_client.client.influxdb_client import InfluxDBClient
2
+ from influxdb_client.domain.organization import Organization
3
+
4
+ def get_org_query_param(org: Organization | str | None, client: InfluxDBClient, required_id: bool = False) -> str: ...
@@ -7,7 +7,7 @@ class Organization:
7
7
  def __init__(
8
8
  self,
9
9
  links: Incomplete | None = None,
10
- id: Incomplete | None = None,
10
+ id: str | None = None,
11
11
  name: Incomplete | None = None,
12
12
  default_storage_type: str | None = None,
13
13
  description: Incomplete | None = None,
@@ -20,9 +20,9 @@ class Organization:
20
20
  @links.setter
21
21
  def links(self, links) -> None: ...
22
22
  @property
23
- def id(self): ...
23
+ def id(self) -> str: ...
24
24
  @id.setter
25
- def id(self, id) -> None: ...
25
+ def id(self, id: str) -> None: ...
26
26
  @property
27
27
  def name(self): ...
28
28
  @name.setter
@@ -1,2 +1,3 @@
1
1
  version = "1.6.*"
2
2
  upstream_repository = "https://github.com/eclipse/paho.mqtt.python"
3
+ obsolete_since = "2.0.0" # Released on 2024-02-10
@@ -2,7 +2,7 @@ from abc import ABCMeta
2
2
  from collections.abc import ItemsView, Mapping, ValuesView
3
3
  from io import StringIO as StringIO
4
4
  from re import Pattern
5
- from typing import Any, Final, Literal, SupportsIndex, TypeVar
5
+ from typing import Any, Final, SupportsIndex, TypeVar
6
6
  from typing_extensions import TypeGuard
7
7
  from urllib.parse import parse_qs, quote, unquote, urlencode as urlencode, urlparse as urlparse
8
8
 
@@ -13,8 +13,8 @@ url_quote = quote
13
13
  url_unquote = unquote
14
14
  url_parse_qs = parse_qs
15
15
 
16
- PY2: Final[Literal[False]]
17
- PY3: Final[Literal[True]]
16
+ PY2: Final = False
17
+ PY3: Final = True
18
18
  RE_NUM: Final[Pattern[str]]
19
19
  ON_LINUX: Final[bool]
20
20
  ON_OSX: Final[bool]
@@ -45,5 +45,5 @@ def to_digit(value: str) -> int: ...
45
45
  def get_linux_version(release_str: str) -> tuple[int, int, int]: ...
46
46
 
47
47
  HAVE_SIGNAL: Final[bool]
48
- EINTR_IS_EXPOSED: Final[Literal[False]]
48
+ EINTR_IS_EXPOSED: Final = False
49
49
  LINUX_VERSION: tuple[int, int, int] | None
@@ -1,9 +1,15 @@
1
1
  from _typeshed import StrOrBytesPath, SupportsAllComparisons
2
2
  from collections.abc import Callable
3
3
 
4
+ # This is intentionally duplicated and placed above the _pygit2
5
+ # star-import to workaround mypy issue #16972, so that consumers
6
+ # of the stubs see the correct, wrapped type for the name
7
+ # "Repository".
8
+ from .repository import Repository as Repository # isort: skip
9
+
4
10
  from . import enums
5
11
  from ._build import __version__ as __version__
6
- from ._pygit2 import *
12
+ from ._pygit2 import * # type: ignore[assignment]
7
13
  from .blame import Blame as Blame, BlameHunk as BlameHunk
8
14
  from .blob import BlobIO as BlobIO
9
15
  from .callbacks import (
@@ -21,7 +27,7 @@ from .index import Index as Index, IndexEntry as IndexEntry
21
27
  from .legacyenums import *
22
28
  from .packbuilder import PackBuilder as PackBuilder
23
29
  from .remotes import Remote as Remote
24
- from .repository import Repository # type: ignore[assignment]
30
+ from .repository import Repository as Repository # noqa: F811 # intentional workaround
25
31
  from .settings import Settings
26
32
  from .submodules import Submodule as Submodule
27
33
 
@@ -1,11 +1,11 @@
1
- from datetime import date, datetime, timedelta
1
+ from datetime import date, timedelta
2
2
  from typing import SupportsFloat, TypeVar, overload
3
3
  from typing_extensions import Self, TypeAlias
4
4
 
5
5
  # See #9817 for why we reexport this here
6
6
  from ._common import weekday as weekday
7
7
 
8
- _DateT = TypeVar("_DateT", date, datetime)
8
+ _DateT = TypeVar("_DateT", bound=date)
9
9
  # Work around attribute and type having the same name.
10
10
  _Weekday: TypeAlias = weekday
11
11
 
@@ -2409,7 +2409,6 @@ class SERVICE_STATUS:
2409
2409
 
2410
2410
  class TRACKMOUSEEVENT: ...
2411
2411
  class WIN32_FIND_DATA: ...
2412
- class com_error: ...
2413
2412
 
2414
2413
  class connection:
2415
2414
  def setautocommit(self, c, /) -> None: ...
@@ -2427,8 +2426,6 @@ class cursor:
2427
2426
  def setinputsizes(self) -> None: ...
2428
2427
  def setoutputsize(self) -> None: ...
2429
2428
 
2430
- class error(Exception): ...
2431
-
2432
2429
  class COMPONENT:
2433
2430
  @property
2434
2431
  def ID(self): ...
@@ -2,8 +2,8 @@ from _typeshed import Incomplete
2
2
  from collections.abc import Iterable
3
3
 
4
4
  import _win32typing
5
+ from win32.lib.pywintypes import error as error
5
6
 
6
- error: Incomplete
7
7
  langid: Incomplete
8
8
 
9
9
  def AddSourceToRegistry(
@@ -40,6 +40,6 @@ class Query(BaseQuery):
40
40
  def collectdatawhile_slave(self, period) -> None: ...
41
41
  def __getinitargs__(self): ...
42
42
 
43
- class QueryError(Exception):
43
+ class QueryError:
44
44
  query: Incomplete
45
45
  def __init__(self, query) -> None: ...
@@ -1,13 +1,11 @@
1
1
  from _typeshed import Incomplete
2
- from typing import Literal
3
- from typing_extensions import TypeAlias
2
+ from typing import ClassVar, Literal
4
3
 
5
4
  import _win32typing
6
5
 
7
6
  def odbc(connectionString: str, /) -> _win32typing.connection: ...
8
7
  def SQLDataSources(direction, /) -> tuple[Incomplete, Incomplete]: ...
9
8
 
10
- _odbcError: TypeAlias = type # noqa: Y042 # Does not exist at runtime, but odbc.odbcError is a valid type.
11
9
  DATE: str
12
10
  NUMBER: str
13
11
  RAW: str
@@ -21,10 +19,14 @@ SQL_FETCH_PRIOR: int
21
19
  SQL_FETCH_RELATIVE: int
22
20
  STRING: str
23
21
  TYPES: tuple[Literal["STRING"], Literal["RAW"], Literal["NUMBER"], Literal["DATE"]]
24
- dataError: Incomplete
25
- error: _odbcError
26
- integrityError: Incomplete
27
- internalError: Incomplete
28
- noError: Incomplete
29
- opError: Incomplete
30
- progError: Incomplete
22
+
23
+ class error(Exception):
24
+ __name__: ClassVar[str] = "odbcError"
25
+
26
+ # These all pretend to come from a module called "dbi", but that module doesn't exist
27
+ class dataError(Exception): ...
28
+ class integrityError(Exception): ...
29
+ class internalError(Exception): ...
30
+ class noError(Exception): ...
31
+ class opError(Exception): ...
32
+ class progError(Exception): ...
@@ -13,7 +13,7 @@ from win32com.server.exception import COMException as COMException
13
13
  S_OK: int
14
14
  IDispatchType: Incomplete
15
15
  IUnknownType: Incomplete
16
- error: Incomplete
16
+ error: str
17
17
  regSpec: str
18
18
  regPolicy: str
19
19
  regDispatcher: str
@@ -1,3 +1,3 @@
1
- version = "1.4.*"
1
+ version = "2.0.*"
2
2
  upstream_repository = "https://github.com/requests/requests-oauthlib"
3
3
  requires = ["types-oauthlib", "types-requests"]
@@ -0,0 +1 @@
1
+ from setuptools._distutils.archive_util import *
@@ -0,0 +1 @@
1
+ from setuptools._distutils.ccompiler import *
@@ -0,0 +1 @@
1
+ from setuptools._distutils.cmd import *
@@ -0,0 +1 @@
1
+ from setuptools._distutils.command.bdist_rpm import *
@@ -0,0 +1 @@
1
+ from setuptools._distutils.command.build import *
@@ -0,0 +1 @@
1
+ from setuptools._distutils.command.build_clib import *
@@ -0,0 +1 @@
1
+ from setuptools._distutils.command.build_ext import *