Improve stubs for braintree.environment (#10907)

This commit is contained in:
Alex Waygood
2023-10-18 18:49:17 +01:00
committed by GitHub
parent d14c5f82c8
commit 608eca5234

View File

@@ -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: ...