Privatize APIs by renaming or removing them from __all__ (#6021)

This commit is contained in:
Jakub Kuczys
2023-04-17 23:44:33 +02:00
committed by GitHub
parent eafbb06756
commit f051eae92d
126 changed files with 508 additions and 157 deletions

View File

@@ -20,15 +20,19 @@ if TYPE_CHECKING:
_ = Translator("Bank API", __file__)
__all__ = [
__all__ = (
"is_owner_if_bank_global",
"Account",
"get_balance",
"can_spend",
"set_balance",
"withdraw_credits",
"deposit_credits",
"can_spend",
"transfer_credits",
"wipe_bank",
"bank_prune",
"get_leaderboard",
"get_leaderboard_position",
"get_account",
"is_global",
"set_global",
@@ -36,15 +40,13 @@ __all__ = [
"set_bank_name",
"get_currency_name",
"set_currency_name",
"get_default_balance",
"set_default_balance",
"get_max_balance",
"set_max_balance",
"cost",
"get_default_balance",
"set_default_balance",
"AbortPurchase",
"bank_prune",
"is_owner_if_bank_global",
]
"cost",
)
_MAX_BALANCE = 2**63 - 1