Skip to content

Commit bec6030

Browse files
committed
Merge branch 'main' into rm-py3.9p0
2 parents eae835b + 516eed0 commit bec6030

36 files changed

Lines changed: 845 additions & 36 deletions

pyrightconfig.stricter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"stubs/grpcio-reflection/grpc_reflection/v1alpha",
4545
"stubs/grpcio-status/grpc_status",
4646
"stubs/grpcio/grpc/__init__.pyi",
47+
"stubs/gunicorn/gunicorn/dirty",
4748
"stubs/hdbcli/hdbcli/dbapi.pyi",
4849
"stubs/html5lib",
4950
"stubs/httplib2",

stdlib/tarfile.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,16 @@ class TarFile:
119119
OPEN_METH: ClassVar[Mapping[str, str]]
120120
name: StrOrBytesPath | None
121121
mode: Literal["r", "a", "w", "x"]
122-
fileobj: _Fileobj | None
123-
format: _TarFormat | None
122+
fileobj: _Fileobj
123+
format: _TarFormat
124124
tarinfo: type[TarInfo]
125-
dereference: bool | None
126-
ignore_zeros: bool | None
127-
encoding: str | None
125+
dereference: bool
126+
ignore_zeros: bool
127+
encoding: str
128128
errors: str
129129
fileobject: type[ExFileObject] # undocumented
130130
pax_headers: Mapping[str, str]
131-
debug: int | None
131+
debug: int
132132
errorlevel: int
133133
offset: int # undocumented
134134
extraction_filter: _FilterFunction | None

stubs/braintree/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "4.41.*"
1+
version = "4.42.*"
22
upstream_repository = "https://github.com/braintree/braintree_python"

stubs/braintree/braintree/braintree_gateway.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ class BraintreeGateway:
6565
webhook_notification: WebhookNotificationGateway
6666
webhook_testing: WebhookTestingGateway
6767
def __init__(self, config=None, **kwargs) -> None: ...
68+
def close(self) -> None: ...

stubs/braintree/braintree/configuration.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class Configuration:
6464
def http(self) -> Http: ...
6565
def graphql_client(self) -> GraphQLClient: ...
6666
def http_strategy(self): ...
67+
def close(self) -> None: ...
6768
def has_client_credentials(self) -> bool: ...
6869
def assert_has_client_credentials(self) -> None: ...
6970
def has_access_token(self) -> bool: ...

stubs/braintree/braintree/transaction.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class Transaction(Resource):
178178
network_transaction_id: Incomplete
179179
payment_facilitator: PaymentFacilitator
180180
transfer: Transfer
181+
partially_authorized: bool
181182
subscription_id: str
182183
created_at: datetime
183184
def __init__(self, gateway, attributes) -> None: ...

stubs/braintree/braintree/transaction_amounts.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ from typing import Final
22

33
class TransactionAmounts:
44
Authorize: Final = "1000.00"
5+
PartiallyAuthorized: Final = "1004.00"
56
Decline: Final = "2000.00"
67
HardDecline: Final = "2015.00"
78
Fail: Final = "3000.00"

stubs/braintree/braintree/util/http.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Http:
1717
config: Configuration
1818
environment: Environment
1919
def __init__(self, config: Configuration, environment: Environment | None = None) -> None: ...
20+
def close(self) -> None: ...
2021
def post(self, path: str, params: dict[str, Incomplete] | None = None): ...
2122
def delete(self, path: str): ...
2223
def get(self, path: str): ...

stubs/braintree/braintree/visa_checkout_card.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
from typing_extensions import deprecated
2+
13
from braintree.address import Address
24
from braintree.credit_card_verification import CreditCardVerification
35
from braintree.resource import Resource
46
from braintree.subscription import Subscription
57

8+
@deprecated("Visa Checkout is no longer supported for creating new transactions.")
69
class VisaCheckoutCard(Resource):
710
billing_address: Address | None
811
subscriptions: list[Subscription]

stubs/gdb/gdb/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ _ValueOrInt: TypeAlias = Value | int
7676

7777
@disjoint_base
7878
class Value:
79-
address: Value
79+
address: Value | None
8080
is_optimized_out: bool
8181
type: Type
8282
dynamic_type: Type

0 commit comments

Comments
 (0)