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

@@ -25,10 +25,11 @@ if TYPE_CHECKING:
log = logging.getLogger("red.core.modlog")
__all__ = [
__all__ = (
"Case",
"CaseType",
"get_case",
"get_latest_case",
"get_all_cases",
"get_cases_for_member",
"create_case",
@@ -39,7 +40,7 @@ __all__ = [
"get_modlog_channel",
"set_modlog_channel",
"reset_cases",
]
)
_config: Optional[Config] = None
_bot_ref: Optional[Red] = None
@@ -243,6 +244,8 @@ class Case:
A single mod log case
This class should ONLY be instantiated by the modlog itself.
Attributes
----------
bot: Red
@@ -730,6 +733,8 @@ class CaseType:
"""
A single case type
This class should ONLY be instantiated by the modlog itself.
Attributes
----------
name: str