-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve stubs for
braintree.environment
(#10907)
- Loading branch information
1 parent
d14c5f8
commit 608eca5
Showing
1 changed file
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ... |