basedpyright 1.31.7 → 1.32.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 (171) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.map +1 -1
  3. package/dist/pyright.js +1 -1
  4. package/dist/pyright.js.map +1 -1
  5. package/dist/typeshed-fallback/commit.txt +1 -1
  6. package/dist/typeshed-fallback/stdlib/_csv.pyi +4 -3
  7. package/dist/typeshed-fallback/stdlib/_frozen_importlib.pyi +1 -1
  8. package/dist/typeshed-fallback/stdlib/_frozen_importlib_external.pyi +5 -5
  9. package/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi +3 -0
  10. package/dist/typeshed-fallback/stdlib/ast.pyi +29 -10
  11. package/dist/typeshed-fallback/stdlib/builtins.pyi +79 -62
  12. package/dist/typeshed-fallback/stdlib/cmath.pyi +1 -1
  13. package/dist/typeshed-fallback/stdlib/copy.pyi +6 -6
  14. package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +2 -2
  15. package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +1 -1
  16. package/dist/typeshed-fallback/stdlib/html/parser.pyi +4 -9
  17. package/dist/typeshed-fallback/stdlib/importlib/abc.pyi +3 -3
  18. package/dist/typeshed-fallback/stdlib/importlib/resources/__init__.pyi +6 -2
  19. package/dist/typeshed-fallback/stdlib/importlib/resources/_functional.pyi +2 -1
  20. package/dist/typeshed-fallback/stdlib/operator.pyi +4 -2
  21. package/dist/typeshed-fallback/stdlib/pdb.pyi +5 -0
  22. package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +160 -69
  23. package/dist/typeshed-fallback/stdlib/turtle.pyi +18 -14
  24. package/dist/typeshed-fallback/stdlib/types.pyi +21 -16
  25. package/dist/typeshed-fallback/stdlib/typing.pyi +12 -2
  26. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +2 -1
  27. package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +15 -15
  28. package/dist/typeshed-fallback/stdlib/xxlimited.pyi +16 -3
  29. package/dist/typeshed-fallback/stubs/Authlib/METADATA.toml +1 -1
  30. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +3 -2
  31. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/models.pyi +2 -2
  32. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_zips.pyi +7 -2
  33. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +6 -4
  34. package/dist/typeshed-fallback/stubs/Jetson.GPIO/Jetson/GPIO/constants.pyi +22 -0
  35. package/dist/typeshed-fallback/stubs/Jetson.GPIO/Jetson/GPIO/gpio.pyi +2 -21
  36. package/dist/typeshed-fallback/stubs/Jetson.GPIO/Jetson/GPIO/gpio_cdev.pyi +11 -0
  37. package/dist/typeshed-fallback/stubs/Jetson.GPIO/Jetson/GPIO/gpio_pin_data.pyi +22 -3
  38. package/dist/typeshed-fallback/stubs/Jetson.GPIO/Jetson/GPIO/gpio_pinmux_lookup.pyi +6 -0
  39. package/dist/typeshed-fallback/stubs/Jetson.GPIO/METADATA.toml +1 -1
  40. package/dist/typeshed-fallback/stubs/PySocks/sockshandler.pyi +0 -5
  41. package/dist/typeshed-fallback/stubs/aiofiles/METADATA.toml +1 -1
  42. package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/base.pyi +2 -0
  43. package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/os.pyi +1 -1
  44. package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/ospath.pyi +15 -4
  45. package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
  46. package/dist/typeshed-fallback/stubs/braintree/braintree/__init__.pyi +11 -0
  47. package/dist/typeshed-fallback/stubs/braintree/braintree/bank_account_instant_verification_gateway.pyi +13 -0
  48. package/dist/typeshed-fallback/stubs/braintree/braintree/bank_account_instant_verification_jwt.pyi +8 -0
  49. package/dist/typeshed-fallback/stubs/braintree/braintree/bank_account_instant_verification_jwt_request.pyi +18 -0
  50. package/dist/typeshed-fallback/stubs/braintree/braintree/braintree_gateway.pyi +4 -3
  51. package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +2 -0
  52. package/dist/typeshed-fallback/stubs/braintree/braintree/receiver.pyi +6 -0
  53. package/dist/typeshed-fallback/stubs/braintree/braintree/sender.pyi +6 -0
  54. package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_us_bank_account_request.pyi +17 -0
  55. package/dist/typeshed-fallback/stubs/braintree/braintree/transfer.pyi +4 -0
  56. package/dist/typeshed-fallback/stubs/braintree/braintree/us_bank_account_verification.pyi +1 -0
  57. package/dist/typeshed-fallback/stubs/cachetools/cachetools/__init__.pyi +36 -5
  58. package/dist/typeshed-fallback/stubs/cachetools/cachetools/func.pyi +45 -10
  59. package/dist/typeshed-fallback/stubs/cachetools/cachetools/keys.pyi +2 -2
  60. package/dist/typeshed-fallback/stubs/django-filter/METADATA.toml +1 -1
  61. package/dist/typeshed-fallback/stubs/django-filter/django_filters/filters.pyi +1 -1
  62. package/dist/typeshed-fallback/stubs/docker/METADATA.toml +1 -1
  63. package/dist/typeshed-fallback/stubs/docker/docker/api/image.pyi +2 -2
  64. package/dist/typeshed-fallback/stubs/docker/docker/api/swarm.pyi +12 -9
  65. package/dist/typeshed-fallback/stubs/docker/docker/credentials/store.pyi +3 -3
  66. package/dist/typeshed-fallback/stubs/docker/docker/errors.pyi +9 -7
  67. package/dist/typeshed-fallback/stubs/docker/docker/models/services.pyi +4 -6
  68. package/dist/typeshed-fallback/stubs/docker/docker/transport/npipeconn.pyi +16 -16
  69. package/dist/typeshed-fallback/stubs/docker/docker/transport/npipesocket.pyi +40 -32
  70. package/dist/typeshed-fallback/stubs/docker/docker/transport/sshconn.pyi +30 -24
  71. package/dist/typeshed-fallback/stubs/docker/docker/transport/unixconn.pyi +22 -19
  72. package/dist/typeshed-fallback/stubs/docker/docker/types/networks.pyi +1 -1
  73. package/dist/typeshed-fallback/stubs/docker/docker/types/services.pyi +16 -10
  74. package/dist/typeshed-fallback/stubs/docker/docker/types/swarm.pyi +2 -7
  75. package/dist/typeshed-fallback/stubs/docker/docker/utils/decorators.pyi +8 -4
  76. package/dist/typeshed-fallback/stubs/docker/docker/utils/utils.pyi +4 -4
  77. package/dist/typeshed-fallback/stubs/docutils/docutils/nodes.pyi +2 -2
  78. package/dist/typeshed-fallback/stubs/flake8-rst-docstrings/METADATA.toml +1 -1
  79. package/dist/typeshed-fallback/stubs/flake8-typing-imports/METADATA.toml +1 -1
  80. package/dist/typeshed-fallback/stubs/grpcio/grpc/__init__.pyi +32 -34
  81. package/dist/typeshed-fallback/stubs/grpcio/grpc/aio/__init__.pyi +40 -21
  82. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/app/base.pyi +0 -3
  83. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/app/wsgiapp.pyi +0 -4
  84. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/config.pyi +1 -2
  85. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/glogging.pyi +1 -2
  86. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/http/message.pyi +0 -3
  87. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/http/unreader.pyi +0 -3
  88. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/http/wsgi.pyi +0 -2
  89. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/instrument/statsd.pyi +0 -9
  90. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/reloader.pyi +1 -3
  91. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/sock.pyi +0 -3
  92. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/workers/geventlet.pyi +1 -8
  93. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/workers/ggevent.pyi +0 -9
  94. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/workers/gtornado.pyi +1 -4
  95. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/workers/sync.pyi +0 -3
  96. package/dist/typeshed-fallback/stubs/html5lib/html5lib/html5parser.pyi +5 -5
  97. package/dist/typeshed-fallback/stubs/jsonschema/jsonschema/exceptions.pyi +1 -1
  98. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/edgelist.pyi +4 -2
  99. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/flow_matrix.pyi +2 -1
  100. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/chordal.pyi +1 -1
  101. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/clique.pyi +2 -2
  102. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/greedy_coloring.pyi +11 -9
  103. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/label_propagation.pyi +1 -1
  104. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/quality.pyi +1 -1
  105. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_kcomponents.pyi +1 -1
  106. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/utils.pyi +3 -2
  107. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/d_separation.pyi +1 -1
  108. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +2 -2
  109. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/efficiency_measures.pyi +4 -4
  110. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/networksimplex.pyi +3 -1
  111. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/utils.pyi +10 -3
  112. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hierarchy.pyi +3 -1
  113. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/binary.pyi +1 -1
  114. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/product.pyi +1 -1
  115. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +1 -1
  116. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/branchings.pyi +2 -2
  117. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/decomposition.pyi +2 -2
  118. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/mst.pyi +3 -2
  119. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/wiener.pyi +2 -2
  120. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/function.pyi +26 -19
  121. package/dist/typeshed-fallback/stubs/networkx/networkx/convert_matrix.pyi +1 -1
  122. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/ego.pyi +2 -1
  123. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/geometric.pyi +2 -2
  124. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/line.pyi +3 -2
  125. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/mycielski.pyi +2 -1
  126. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/spectral_graph_forge.pyi +2 -3
  127. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/stochastic.pyi +3 -1
  128. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/adjlist.pyi +3 -2
  129. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/edgelist.pyi +8 -3
  130. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/gexf.pyi +9 -8
  131. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/gml.pyi +3 -2
  132. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/graph6.pyi +2 -2
  133. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/graphml.pyi +10 -9
  134. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/json_graph/adjacency.pyi +2 -1
  135. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/json_graph/cytoscape.pyi +2 -1
  136. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/json_graph/node_link.pyi +22 -1
  137. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/json_graph/tree.pyi +3 -1
  138. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/multiline_adjlist.pyi +3 -2
  139. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/p2g.pyi +3 -3
  140. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/pajek.pyi +3 -2
  141. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/sparse6.pyi +3 -4
  142. package/dist/typeshed-fallback/stubs/networkx/networkx/utils/backends.pyi +1 -1
  143. package/dist/typeshed-fallback/stubs/networkx/networkx/utils/misc.pyi +2 -1
  144. package/dist/typeshed-fallback/stubs/networkx/networkx/utils/rcm.pyi +2 -2
  145. package/dist/typeshed-fallback/stubs/psutil/psutil/__init__.pyi +11 -4
  146. package/dist/typeshed-fallback/stubs/psycopg2/METADATA.toml +1 -1
  147. package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/errorcodes.pyi +3 -0
  148. package/dist/typeshed-fallback/stubs/pyserial/serial/rfc2217.pyi +2 -2
  149. package/dist/typeshed-fallback/stubs/pyserial/serial/serialutil.pyi +1 -1
  150. package/dist/typeshed-fallback/stubs/pyserial/serial/tools/list_ports.pyi +3 -1
  151. package/dist/typeshed-fallback/stubs/pyserial/serial/tools/list_ports_windows.pyi +1 -1
  152. package/dist/typeshed-fallback/stubs/pyserial/serial/urlhandler/protocol_spy.pyi +2 -2
  153. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/rrule.pyi +30 -1
  154. package/dist/typeshed-fallback/stubs/pywin32/win32/win32pipe.pyi +1 -1
  155. package/dist/typeshed-fallback/stubs/six/six/__init__.pyi +1 -1
  156. package/dist/typeshed-fallback/stubs/www-authenticate/METADATA.toml +2 -0
  157. package/dist/typeshed-fallback/stubs/www-authenticate/www_authenticate.pyi +34 -0
  158. package/dist/typeshed-fallback/stubs/xlrd/xlrd/sheet.pyi +5 -5
  159. package/dist/typeshed-fallback/stubs/xmldiff/METADATA.toml +2 -0
  160. package/dist/typeshed-fallback/stubs/xmldiff/xmldiff/__init__.pyi +0 -0
  161. package/dist/typeshed-fallback/stubs/xmldiff/xmldiff/actions.pyi +58 -0
  162. package/dist/typeshed-fallback/stubs/xmldiff/xmldiff/diff.pyi +36 -0
  163. package/dist/typeshed-fallback/stubs/xmldiff/xmldiff/diff_match_patch.pyi +58 -0
  164. package/dist/typeshed-fallback/stubs/xmldiff/xmldiff/formatting.pyi +80 -0
  165. package/dist/typeshed-fallback/stubs/xmldiff/xmldiff/main.pyi +70 -0
  166. package/dist/typeshed-fallback/stubs/xmldiff/xmldiff/patch.pyi +12 -0
  167. package/dist/typeshed-fallback/stubs/xmldiff/xmldiff/utils.pyi +16 -0
  168. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/extractor/common.pyi +48 -32
  169. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/extractor/commonmistakes.pyi +5 -3
  170. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/extractor/commonprotocols.pyi +5 -3
  171. package/package.json +1 -1
@@ -7,7 +7,7 @@ from os import _ScandirIterator, stat_result
7
7
  from typing import AnyStr, overload
8
8
 
9
9
  from aiofiles import ospath
10
- from aiofiles.ospath import wrap as wrap
10
+ from aiofiles.base import wrap as wrap
11
11
 
12
12
  __all__ = [
13
13
  "path",
@@ -1,13 +1,24 @@
1
1
  from _typeshed import FileDescriptorOrPath
2
2
  from asyncio.events import AbstractEventLoop
3
- from collections.abc import Awaitable, Callable
4
3
  from concurrent.futures import Executor
5
4
  from os import PathLike
6
- from typing import AnyStr, TypeVar
5
+ from typing import AnyStr
7
6
 
8
- _R = TypeVar("_R")
7
+ __all__ = [
8
+ "abspath",
9
+ "getatime",
10
+ "getctime",
11
+ "getmtime",
12
+ "getsize",
13
+ "exists",
14
+ "isdir",
15
+ "isfile",
16
+ "islink",
17
+ "ismount",
18
+ "samefile",
19
+ "sameopenfile",
20
+ ]
9
21
 
10
- def wrap(func: Callable[..., _R]) -> Callable[..., Awaitable[_R]]: ...
11
22
  async def exists(
12
23
  path: FileDescriptorOrPath, *, loop: AbstractEventLoop | None = ..., executor: Executor | None = ...
13
24
  ) -> bool: ...
@@ -1,2 +1,2 @@
1
- version = "4.38.*"
1
+ version = "4.39.*"
2
2
  upstream_repository = "https://github.com/braintree/braintree_python"
@@ -7,6 +7,13 @@ from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as Amex
7
7
  from braintree.android_pay_card import AndroidPayCard as AndroidPayCard
8
8
  from braintree.apple_pay_card import ApplePayCard as ApplePayCard
9
9
  from braintree.apple_pay_gateway import ApplePayGateway as ApplePayGateway
10
+ from braintree.bank_account_instant_verification_gateway import (
11
+ BankAccountInstantVerificationGateway as BankAccountInstantVerificationGateway,
12
+ )
13
+ from braintree.bank_account_instant_verification_jwt import BankAccountInstantVerificationJwt as BankAccountInstantVerificationJwt
14
+ from braintree.bank_account_instant_verification_jwt_request import (
15
+ BankAccountInstantVerificationJwtRequest as BankAccountInstantVerificationJwtRequest,
16
+ )
10
17
  from braintree.blik_alias import BlikAlias as BlikAlias
11
18
  from braintree.braintree_gateway import BraintreeGateway as BraintreeGateway
12
19
  from braintree.client_token import ClientToken as ClientToken
@@ -62,10 +69,12 @@ from braintree.paypal_payment_resource import PayPalPaymentResource as PayPalPay
62
69
  from braintree.plan import Plan as Plan
63
70
  from braintree.plan_gateway import PlanGateway as PlanGateway
64
71
  from braintree.processor_response_types import ProcessorResponseTypes as ProcessorResponseTypes
72
+ from braintree.receiver import Receiver as Receiver
65
73
  from braintree.resource_collection import ResourceCollection as ResourceCollection
66
74
  from braintree.risk_data import RiskData as RiskData
67
75
  from braintree.samsung_pay_card import SamsungPayCard as SamsungPayCard
68
76
  from braintree.search import Search as Search
77
+ from braintree.sender import Sender as Sender
69
78
  from braintree.sepa_direct_debit_account import SepaDirectDebitAccount as SepaDirectDebitAccount
70
79
  from braintree.settlement_batch_summary import SettlementBatchSummary as SettlementBatchSummary
71
80
  from braintree.signature_service import SignatureService as SignatureService
@@ -84,9 +93,11 @@ from braintree.transaction_details import TransactionDetails as TransactionDetai
84
93
  from braintree.transaction_gateway import TransactionGateway as TransactionGateway
85
94
  from braintree.transaction_line_item import TransactionLineItem as TransactionLineItem
86
95
  from braintree.transaction_search import TransactionSearch as TransactionSearch
96
+ from braintree.transaction_us_bank_account_request import TransactionUsBankAccountRequest as TransactionUsBankAccountRequest
87
97
  from braintree.transfer import Transfer as Transfer
88
98
  from braintree.unknown_payment_method import UnknownPaymentMethod as UnknownPaymentMethod
89
99
  from braintree.us_bank_account import UsBankAccount as UsBankAccount
100
+ from braintree.us_bank_account_verification import UsBankAccountVerification as UsBankAccountVerification
90
101
  from braintree.validation_error_collection import ValidationErrorCollection as ValidationErrorCollection
91
102
  from braintree.venmo_account import VenmoAccount as VenmoAccount
92
103
  from braintree.venmo_profile_data import VenmoProfileData as VenmoProfileData
@@ -0,0 +1,13 @@
1
+ from _typeshed import Incomplete
2
+ from typing import Final
3
+
4
+ from braintree.error_result import ErrorResult
5
+ from braintree.successful_result import SuccessfulResult
6
+
7
+ class BankAccountInstantVerificationGateway:
8
+ gateway: Incomplete
9
+ config: Incomplete
10
+ graphql_client: Incomplete
11
+ CREATE_JWT_MUTATION: Final[str]
12
+ def __init__(self, gateway) -> None: ...
13
+ def create_jwt(self, request) -> SuccessfulResult | ErrorResult: ...
@@ -0,0 +1,8 @@
1
+ from braintree.attribute_getter import AttributeGetter
2
+
3
+ class BankAccountInstantVerificationJwt(AttributeGetter):
4
+ def __init__(self, jwt) -> None: ...
5
+ @property
6
+ def jwt(self): ...
7
+ @jwt.setter
8
+ def jwt(self, value) -> None: ...
@@ -0,0 +1,18 @@
1
+ from typing import TypedDict, type_check_only
2
+ from typing_extensions import Self
3
+
4
+ @type_check_only
5
+ class _ParamsDict(TypedDict, total=False):
6
+ businessName: str
7
+ returnUrl: str
8
+ cancelUrl: str
9
+
10
+ class BankAccountInstantVerificationJwtRequest:
11
+ def __init__(self) -> None: ...
12
+ def business_name(self, business_name: str) -> Self: ...
13
+ def return_url(self, return_url: str) -> Self: ...
14
+ def cancel_url(self, cancel_url: str) -> Self: ...
15
+ def get_business_name(self) -> str: ...
16
+ def get_return_url(self) -> str: ...
17
+ def get_cancel_url(self) -> str: ...
18
+ def to_graphql_variables(self) -> _ParamsDict: ...
@@ -1,8 +1,7 @@
1
- from _typeshed import Incomplete
2
-
3
1
  from braintree.add_on_gateway import AddOnGateway
4
2
  from braintree.address_gateway import AddressGateway
5
3
  from braintree.apple_pay_gateway import ApplePayGateway
4
+ from braintree.bank_account_instant_verification_gateway import BankAccountInstantVerificationGateway
6
5
  from braintree.client_token_gateway import ClientTokenGateway
7
6
  from braintree.configuration import Configuration
8
7
  from braintree.credit_card_gateway import CreditCardGateway
@@ -28,6 +27,7 @@ from braintree.transaction_gateway import TransactionGateway
28
27
  from braintree.transaction_line_item_gateway import TransactionLineItemGateway
29
28
  from braintree.us_bank_account_gateway import UsBankAccountGateway
30
29
  from braintree.us_bank_account_verification_gateway import UsBankAccountVerificationGateway
30
+ from braintree.util.graphql_client import GraphQLClient
31
31
  from braintree.webhook_notification_gateway import WebhookNotificationGateway
32
32
  from braintree.webhook_testing_gateway import WebhookTestingGateway
33
33
 
@@ -36,6 +36,7 @@ class BraintreeGateway:
36
36
  add_on: AddOnGateway
37
37
  address: AddressGateway
38
38
  apple_pay: ApplePayGateway
39
+ bank_account_instant_verification: BankAccountInstantVerificationGateway
39
40
  client_token: ClientTokenGateway
40
41
  credit_card: CreditCardGateway
41
42
  customer: CustomerGateway
@@ -43,7 +44,7 @@ class BraintreeGateway:
43
44
  dispute: DisputeGateway
44
45
  document_upload: DocumentUploadGateway
45
46
  exchange_rate_quote: ExchangeRateQuoteGateway
46
- graphql_client: Incomplete
47
+ graphql_client: GraphQLClient
47
48
  merchant: MerchantGateway
48
49
  merchant_account: MerchantAccountGateway
49
50
  oauth: OAuthGateway
@@ -572,6 +572,8 @@ class ErrorCodes:
572
572
  TransactionIsNotEligibleForAdjustment: Final = "915219"
573
573
  TransactionMustBeInStateAuthorized: Final = "915218"
574
574
  TransactionSourceIsInvalid: Final = "915133"
575
+ TransferTypeIsInvalid: Final = "97501"
576
+ TransferDetailsAreRequired: Final = "97510"
575
577
  TypeIsInvalid: Final = "91523"
576
578
  TypeIsRequired: Final = "91524"
577
579
  UnsupportedVoiceAuthorization: Final = "91539"
@@ -0,0 +1,6 @@
1
+ from typing import Any
2
+
3
+ from braintree.attribute_getter import AttributeGetter
4
+
5
+ class Receiver(AttributeGetter):
6
+ def __init__(self, attributes: dict[str, Any] | None) -> None: ...
@@ -0,0 +1,6 @@
1
+ from typing import Any
2
+
3
+ from braintree.attribute_getter import AttributeGetter
4
+
5
+ class Sender(AttributeGetter):
6
+ def __init__(self, attributes: dict[str, Any] | None) -> None: ...
@@ -0,0 +1,17 @@
1
+ from _typeshed import Incomplete
2
+ from datetime import datetime
3
+ from typing import TypedDict, type_check_only
4
+ from typing_extensions import Self
5
+
6
+ @type_check_only
7
+ class _ParamsDict(TypedDict, total=False):
8
+ ach_mandate_text: str
9
+ ach_mandate_accepted_at: str
10
+
11
+ class TransactionUsBankAccountRequest:
12
+ parent: Incomplete
13
+ def __init__(self, parent) -> None: ...
14
+ def ach_mandate_text(self, ach_mandate_text: str) -> Self: ...
15
+ def ach_mandate_accepted_at(self, ach_mandate_accepted_at: str | datetime) -> Self: ...
16
+ def done(self): ...
17
+ def to_param_dict(self) -> _ParamsDict: ...
@@ -1,4 +1,8 @@
1
1
  from braintree.attribute_getter import AttributeGetter
2
+ from braintree.receiver import Receiver
3
+ from braintree.sender import Sender
2
4
 
3
5
  class Transfer(AttributeGetter):
6
+ sender: Sender
7
+ receiver: Receiver
4
8
  def __init__(self, attributes) -> None: ...
@@ -18,6 +18,7 @@ class UsBankAccountVerification(AttributeGetter):
18
18
  class VerificationMethod:
19
19
  NetworkCheck: Final = "network_check"
20
20
  IndependentCheck: Final = "independent_check"
21
+ InstantVerificationAccountValidation: Final = "instant_verification_account_validation"
21
22
  TokenizedCheck: Final = "tokenized_check"
22
23
  MicroTransfers: Final = "micro_transfers"
23
24
 
@@ -2,7 +2,7 @@ from _typeshed import IdentityFunction, Unused
2
2
  from collections.abc import Callable, Iterator, MutableMapping, Sequence
3
3
  from contextlib import AbstractContextManager
4
4
  from threading import Condition
5
- from typing import Any, TypeVar, overload
5
+ from typing import Any, Generic, Literal, NamedTuple, TypeVar, overload
6
6
  from typing_extensions import Self, deprecated
7
7
 
8
8
  __all__ = ("Cache", "FIFOCache", "LFUCache", "LRUCache", "RRCache", "TLRUCache", "TTLCache", "cached", "cachedmethod")
@@ -11,6 +11,7 @@ __version__: str
11
11
  _KT = TypeVar("_KT")
12
12
  _VT = TypeVar("_VT")
13
13
  _T = TypeVar("_T")
14
+ _R = TypeVar("_R")
14
15
 
15
16
  class Cache(MutableMapping[_KT, _VT]):
16
17
  @overload
@@ -99,22 +100,52 @@ class TLRUCache(_TimedCache[_KT, _VT]):
99
100
  def ttu(self) -> Callable[[_KT, _VT, float], float]: ...
100
101
  def expire(self, time: float | None = None) -> list[tuple[_KT, _VT]]: ...
101
102
 
103
+ class _CacheInfo(NamedTuple):
104
+ hits: int
105
+ misses: int
106
+ maxsize: int | None
107
+ currsize: int
108
+
109
+ class _cached_wrapper(Generic[_R]):
110
+ __wrapped__: Callable[..., _R]
111
+ def __call__(self, /, *args: Any, **kwargs: Any) -> _R: ...
112
+
113
+ class _cached_wrapper_info(_cached_wrapper[_R]):
114
+ def cache_info(self) -> _CacheInfo: ...
115
+ def cache_clear(self) -> None: ...
116
+
102
117
  @overload
103
118
  def cached(
104
119
  cache: MutableMapping[_KT, Any] | None,
105
120
  key: Callable[..., _KT] = ...,
106
121
  lock: AbstractContextManager[Any] | None = None,
107
122
  condition: Condition | None = None,
108
- info: bool = False,
109
- ) -> IdentityFunction: ...
123
+ info: Literal[True] = ...,
124
+ ) -> Callable[[Callable[..., _R]], _cached_wrapper_info[_R]]: ...
125
+ @overload
126
+ def cached(
127
+ cache: MutableMapping[_KT, Any] | None,
128
+ key: Callable[..., _KT] = ...,
129
+ lock: AbstractContextManager[Any] | None = None,
130
+ condition: Condition | None = None,
131
+ info: Literal[False] = ...,
132
+ ) -> Callable[[Callable[..., _R]], _cached_wrapper[_R]]: ...
110
133
  @overload
111
134
  @deprecated("Passing `info` as positional parameter is deprecated.")
112
135
  def cached(
113
136
  cache: MutableMapping[_KT, Any] | None,
114
137
  key: Callable[..., _KT] = ...,
115
138
  lock: AbstractContextManager[Any] | None = None,
116
- condition: bool | None = None,
117
- ) -> IdentityFunction: ...
139
+ condition: Literal[True] = ...,
140
+ ) -> Callable[[Callable[..., _R]], _cached_wrapper_info[_R]]: ...
141
+ @overload
142
+ @deprecated("Passing `info` as positional parameter is deprecated.")
143
+ def cached(
144
+ cache: MutableMapping[_KT, Any] | None,
145
+ key: Callable[..., _KT] = ...,
146
+ lock: AbstractContextManager[Any] | None = None,
147
+ condition: Literal[False] | None = ...,
148
+ ) -> Callable[[Callable[..., _R]], _cached_wrapper[_R]]: ...
118
149
  def cachedmethod(
119
150
  cache: Callable[[Any], MutableMapping[_KT, Any] | None],
120
151
  key: Callable[..., _KT] = ...,
@@ -1,16 +1,51 @@
1
- from _typeshed import IdentityFunction
2
1
  from collections.abc import Callable, Sequence
3
- from typing import TypeVar
2
+ from typing import Any, Final, Generic, NamedTuple, TypeVar, overload
3
+
4
+ __all__: Final = ("fifo_cache", "lfu_cache", "lru_cache", "rr_cache", "ttl_cache")
4
5
 
5
- __all__ = ("fifo_cache", "lfu_cache", "lru_cache", "rr_cache", "ttl_cache")
6
6
  _T = TypeVar("_T")
7
+ _R = TypeVar("_R")
8
+
9
+ class _CacheInfo(NamedTuple):
10
+ hits: int
11
+ misses: int
12
+ maxsize: int | None
13
+ currsize: int
14
+
15
+ class _cachetools_cache_wrapper(Generic[_R]):
16
+ __wrapped__: Callable[..., _R]
17
+ def __call__(self, /, *args: Any, **kwargs: Any) -> _R: ...
18
+ def cache_info(self) -> _CacheInfo: ...
19
+ def cache_clear(self) -> None: ...
20
+ def cache_parameters(self) -> dict[str, Any]: ...
7
21
 
8
- def fifo_cache(maxsize: float | None = 128, typed: bool = False) -> IdentityFunction: ...
9
- def lfu_cache(maxsize: float | None = 128, typed: bool = False) -> IdentityFunction: ...
10
- def lru_cache(maxsize: float | None = 128, typed: bool = False) -> IdentityFunction: ...
22
+ @overload
23
+ def fifo_cache(
24
+ maxsize: int | None = 128, typed: bool = False
25
+ ) -> Callable[[Callable[..., _R]], _cachetools_cache_wrapper[_R]]: ...
26
+ @overload
27
+ def fifo_cache(maxsize: Callable[..., _R], typed: bool = False) -> _cachetools_cache_wrapper[_R]: ...
28
+ @overload
29
+ def lfu_cache(maxsize: int | None = 128, typed: bool = False) -> Callable[[Callable[..., _R]], _cachetools_cache_wrapper[_R]]: ...
30
+ @overload
31
+ def lfu_cache(maxsize: Callable[..., _R], typed: bool = False) -> _cachetools_cache_wrapper[_R]: ...
32
+ @overload
33
+ def lru_cache(maxsize: int | None = 128, typed: bool = False) -> Callable[[Callable[..., _R]], _cachetools_cache_wrapper[_R]]: ...
34
+ @overload
35
+ def lru_cache(maxsize: Callable[..., _R], typed: bool = False) -> _cachetools_cache_wrapper[_R]: ...
36
+ @overload
11
37
  def rr_cache(
12
- maxsize: float | None = 128, choice: Callable[[Sequence[_T]], _T] | None = ..., typed: bool = False
13
- ) -> IdentityFunction: ...
38
+ maxsize: int | None = 128, choice: Callable[[Sequence[_T]], _T] | None = ..., typed: bool = False
39
+ ) -> Callable[[Callable[..., _R]], _cachetools_cache_wrapper[_R]]: ...
40
+ @overload
41
+ def rr_cache(
42
+ maxsize: Callable[..., _R], choice: Callable[[Sequence[_T]], _T] | None = ..., typed: bool = False
43
+ ) -> _cachetools_cache_wrapper[_R]: ...
44
+ @overload
45
+ def ttl_cache(
46
+ maxsize: int | None = 128, ttl: float = 600, timer: Callable[[], float] = ..., typed: bool = False
47
+ ) -> Callable[[Callable[..., _R]], _cachetools_cache_wrapper[_R]]: ...
48
+ @overload
14
49
  def ttl_cache(
15
- maxsize: float | None = 128, ttl: float = 600, timer: Callable[[], float] = ..., typed: bool = False
16
- ) -> IdentityFunction: ...
50
+ maxsize: Callable[..., _R], ttl: float = 600, timer: Callable[[], float] = ..., typed: bool = False
51
+ ) -> _cachetools_cache_wrapper[_R]: ...
@@ -4,6 +4,6 @@ from collections.abc import Hashable
4
4
  __all__ = ("hashkey", "methodkey", "typedkey", "typedmethodkey")
5
5
 
6
6
  def hashkey(*args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
7
- def methodkey(self: Unused, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
7
+ def methodkey(self: Unused, /, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
8
8
  def typedkey(*args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
9
- def typedmethodkey(self: Unused, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
9
+ def typedmethodkey(self: Unused, /, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
@@ -1,4 +1,4 @@
1
- version = "25.1.*"
1
+ version = "25.2.*"
2
2
  upstream_repository = "https://github.com/carltongibson/django-filter/"
3
3
  requires = ["django-stubs"]
4
4
 
@@ -303,7 +303,7 @@ class OrderingFilter(BaseCSVFilter, ChoiceFilter):
303
303
  field_name: str | None = None,
304
304
  lookup_expr: str | None = None,
305
305
  *,
306
- fields: dict[str, str] | Iterable[tuple[str, str]] = ...,
306
+ fields: dict[str, str] | Iterable[str] | Iterable[tuple[str, str]] = ...,
307
307
  field_labels: dict[str, StrOrPromise] = ...,
308
308
  # Inherited from ChoiceFilter
309
309
  null_value: Any = ..., # Null value can be any type (None, empty string, etc.)
@@ -1,3 +1,3 @@
1
1
  version = "7.1.*"
2
2
  upstream_repository = "https://github.com/docker/docker-py"
3
- requires = ["types-requests", "urllib3>=2"]
3
+ requires = ["types-paramiko", "types-requests", "urllib3>=2"]
@@ -1,7 +1,7 @@
1
- from _typeshed import Incomplete
1
+ import logging
2
2
  from typing import Any
3
3
 
4
- log: Incomplete
4
+ log: logging.Logger
5
5
 
6
6
  class ImageApiMixin:
7
7
  def get_image(self, image: str, chunk_size: int | None = 2097152): ...
@@ -1,9 +1,12 @@
1
- from _typeshed import Incomplete
1
+ import logging
2
+ from typing import Literal
2
3
 
3
- log: Incomplete
4
+ from docker.types.swarm import SwarmSpec
5
+
6
+ log: logging.Logger
4
7
 
5
8
  class SwarmApiMixin:
6
- def create_swarm_spec(self, *args, **kwargs): ...
9
+ def create_swarm_spec(self, *args, **kwargs) -> SwarmSpec: ...
7
10
  def get_unlock_key(self): ...
8
11
  def init_swarm(
9
12
  self,
@@ -20,12 +23,12 @@ class SwarmApiMixin:
20
23
  def inspect_node(self, node_id): ...
21
24
  def join_swarm(
22
25
  self, remote_addrs, join_token, listen_addr: str = "0.0.0.0:2377", advertise_addr=None, data_path_addr=None
23
- ): ...
24
- def leave_swarm(self, force: bool = False): ...
26
+ ) -> Literal[True]: ...
27
+ def leave_swarm(self, force: bool = False) -> Literal[True]: ...
25
28
  def nodes(self, filters=None): ...
26
- def remove_node(self, node_id, force: bool = False): ...
27
- def unlock_swarm(self, key): ...
28
- def update_node(self, node_id, version, node_spec=None): ...
29
+ def remove_node(self, node_id, force: bool = False) -> Literal[True]: ...
30
+ def unlock_swarm(self, key) -> Literal[True]: ...
31
+ def update_node(self, node_id, version, node_spec=None) -> Literal[True]: ...
29
32
  def update_swarm(
30
33
  self,
31
34
  version,
@@ -33,4 +36,4 @@ class SwarmApiMixin:
33
36
  rotate_worker_token: bool = False,
34
37
  rotate_manager_token: bool = False,
35
38
  rotate_manager_unlock_key: bool = False,
36
- ): ...
39
+ ) -> Literal[True]: ...
@@ -1,10 +1,10 @@
1
1
  from _typeshed import Incomplete
2
2
 
3
3
  class Store:
4
- program: Incomplete
5
- exe: Incomplete
4
+ program: str
5
+ exe: str | None
6
6
  environment: Incomplete
7
- def __init__(self, program, environment=None) -> None: ...
7
+ def __init__(self, program: str, environment=None) -> None: ...
8
8
  def get(self, server): ...
9
9
  def store(self, server, username, secret): ...
10
10
  def erase(self, server) -> None: ...
@@ -1,8 +1,8 @@
1
- from _typeshed import Incomplete
2
1
  from collections.abc import Iterator, Mapping
3
- from typing import NoReturn
2
+ from typing import Any, NoReturn
4
3
 
5
4
  from docker.models.containers import Container
5
+ from docker.models.images import Image
6
6
  from requests import HTTPError, Response
7
7
 
8
8
  class DockerException(Exception): ...
@@ -35,11 +35,13 @@ class NullResource(DockerException, ValueError): ...
35
35
 
36
36
  class ContainerError(DockerException):
37
37
  container: Container
38
- exit_status: Incomplete
39
- command: Incomplete
40
- image: Incomplete
38
+ exit_status: int
39
+ command: str | list[str] | None
40
+ image: str | Image
41
41
  stderr: str | None
42
- def __init__(self, container: Container, exit_status, command, image, stderr: str | None) -> None: ...
42
+ def __init__(
43
+ self, container: Container, exit_status: int, command: str | list[str] | None, image: str | Image, stderr: str | None
44
+ ) -> None: ...
43
45
 
44
46
  class StreamParseError(RuntimeError):
45
47
  msg: str
@@ -52,7 +54,7 @@ class BuildError(DockerException):
52
54
 
53
55
  class ImageLoadError(DockerException): ...
54
56
 
55
- def create_unexpected_kwargs_error(name, kwargs: Mapping[str, Incomplete]) -> NoReturn: ...
57
+ def create_unexpected_kwargs_error(name, kwargs: Mapping[str, Any]) -> NoReturn: ...
56
58
 
57
59
  class MissingContextParameter(DockerException):
58
60
  param: str
@@ -1,5 +1,3 @@
1
- from _typeshed import Incomplete
2
-
3
1
  from .resource import Collection, Model
4
2
 
5
3
  class Service(Model):
@@ -21,7 +19,7 @@ class ServiceCollection(Collection[Service]):
21
19
  def get(self, service_id, insert_defaults=None): ...
22
20
  def list(self, **kwargs): ...
23
21
 
24
- CONTAINER_SPEC_KWARGS: Incomplete
25
- TASK_TEMPLATE_KWARGS: Incomplete
26
- CREATE_SERVICE_KWARGS: Incomplete
27
- PLACEMENT_KWARGS: Incomplete
22
+ CONTAINER_SPEC_KWARGS: list[str]
23
+ TASK_TEMPLATE_KWARGS: list[str]
24
+ CREATE_SERVICE_KWARGS: list[str]
25
+ PLACEMENT_KWARGS: list[str]
@@ -1,29 +1,29 @@
1
- from _typeshed import Incomplete
2
-
3
1
  import urllib3
4
2
  import urllib3.connection
5
3
  from docker.transport.basehttpadapter import BaseHTTPAdapter
4
+ from docker.transport.npipesocket import NpipeSocket
5
+ from urllib3._collections import RecentlyUsedContainer as urllib3_RecentlyUsedContainer
6
6
 
7
- RecentlyUsedContainer: Incomplete
7
+ RecentlyUsedContainer = urllib3_RecentlyUsedContainer
8
8
 
9
9
  class NpipeHTTPConnection(urllib3.connection.HTTPConnection):
10
- npipe_path: Incomplete
11
- timeout: Incomplete
12
- def __init__(self, npipe_path, timeout: int = 60) -> None: ...
13
- sock: Incomplete
10
+ npipe_path: str
11
+ timeout: int
12
+ def __init__(self, npipe_path: str, timeout: int = 60) -> None: ...
13
+ sock: NpipeSocket | None
14
14
  def connect(self) -> None: ...
15
15
 
16
16
  class NpipeHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
17
- npipe_path: Incomplete
18
- timeout: Incomplete
19
- def __init__(self, npipe_path, timeout: int = 60, maxsize: int = 10) -> None: ...
17
+ npipe_path: str
18
+ timeout: urllib3.Timeout
19
+ def __init__(self, npipe_path: str, timeout: int = 60, maxsize: int = 10) -> None: ...
20
20
 
21
21
  class NpipeHTTPAdapter(BaseHTTPAdapter):
22
- __attrs__: Incomplete
23
- npipe_path: Incomplete
24
- timeout: Incomplete
25
- max_pool_size: Incomplete
26
- pools: Incomplete
27
- def __init__(self, base_url, timeout: int = 60, pool_connections=..., max_pool_size=...) -> None: ...
22
+ __attrs__: list[str]
23
+ npipe_path: str
24
+ timeout: int
25
+ max_pool_size: int
26
+ pools: RecentlyUsedContainer
27
+ def __init__(self, base_url: str, timeout: int = 60, pool_connections: int = 25, max_pool_size: int = 10) -> None: ...
28
28
  def get_connection(self, url, proxies=None): ...
29
29
  def request_url(self, request, proxies): ...