Skip to content

Commit

Permalink
Improve stubs for braintree.environment (#10907)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Oct 18, 2023
1 parent d14c5f8 commit 608eca5
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions stubs/braintree/braintree/environment.pyi
Original file line number Diff line number Diff line change
@@ -1,33 +1,47 @@
from typing import Any
from _typeshed import Incomplete
from typing import ClassVar

from braintree.exceptions.configuration_error import ConfigurationError as ConfigurationError

class Environment:
__name__: Any
is_ssl: Any
ssl_certificate: Any
Development: ClassVar[Environment]
QA: ClassVar[Environment]
Sandbox: ClassVar[Environment]
Production: ClassVar[Environment]
All: ClassVar[dict[str, Environment]]
__name__: str
is_ssl: bool
ssl_certificate: Incomplete
def __init__(
self, name, server, port, auth_url, is_ssl, ssl_certificate, graphql_server: str = "", graphql_port: str = ""
self,
name,
server: str,
port,
auth_url: str,
is_ssl: bool,
ssl_certificate,
graphql_server: str = "",
graphql_port: str = "",
) -> None: ...
@property
def base_url(self): ...
def base_url(self) -> str: ...
@property
def port(self): ...
def port(self) -> int: ...
@property
def auth_url(self): ...
def auth_url(self) -> str: ...
@property
def protocol(self): ...
def protocol(self) -> str: ...
@property
def server(self): ...
def server(self) -> str: ...
@property
def server_and_port(self): ...
def server_and_port(self) -> str: ...
@property
def graphql_server(self): ...
def graphql_server(self) -> str: ...
@property
def graphql_port(self): ...
def graphql_port(self) -> str: ...
@property
def graphql_server_and_port(self): ...
def graphql_server_and_port(self) -> str: ...
@staticmethod
def parse_environment(environment): ...
def parse_environment(environment: Environment | str | None) -> Environment | None: ...
@staticmethod
def braintree_root(): ...
def braintree_root() -> str: ...

0 comments on commit 608eca5

Please sign in to comment.