Skip to content

Commit

Permalink
Delete deprecated SessionString class (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored May 9, 2024
1 parent dc5f92b commit 85ed173
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/atproto_client/client/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,3 @@ def copy(self) -> 'Session':

SessionChangeCallback = t.Callable[[SessionEvent, Session], None]
AsyncSessionChangeCallback = t.Callable[[SessionEvent, Session], t.Coroutine[t.Any, t.Any, None]]


class SessionString(Session):
def __init_subclass__(cls, *args, **kwargs: t.Any) -> None:
import warnings

warnings.warn('SessionString class is deprecated. Use Session class instead.', DeprecationWarning, stacklevel=2)
super().__init_subclass__(*args, **kwargs)

def __init__(self, *args, **kwargs: t.Any) -> None:
import warnings

warnings.warn('SessionString class is deprecated. Use Session class instead.', DeprecationWarning, stacklevel=2)
super().__init__(*args, **kwargs)

0 comments on commit 85ed173

Please sign in to comment.