Skip to content

Commit

Permalink
Use undescore prefix rather than suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Jul 28, 2023
1 parent 825da79 commit 1e30393
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/apify_client/consts.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import warnings
from typing import Any

from apify_shared.consts import ActorJobStatus as ActorJobStatus_
from apify_shared.consts import ActorSourceType as ActorSourceType_
from apify_shared.consts import MetaOrigin as MetaOrigin_
from apify_shared.consts import WebhookEventType as WebhookEventType_
from apify_shared.consts import ActorJobStatus as _ActorJobStatus
from apify_shared.consts import ActorSourceType as _ActorSourceType
from apify_shared.consts import MetaOrigin as _MetaOrigin
from apify_shared.consts import WebhookEventType as _WebhookEventType

DEPRECATED_NAMES = [
'ActorJobStatus',
Expand All @@ -27,5 +27,5 @@ def __getattr__(name: str) -> Any:
category=DeprecationWarning,
stacklevel=2,
)
return globals()[f'{name}_']
return globals()[f'_{name}']
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')

0 comments on commit 1e30393

Please sign in to comment.