Просмотр исходного кода

ref(auth): Remove unneeded __post_init__ (#54084)

This bit was added for HC stuff a while back -> we can get rid of it now
Eric Hasegawa 1 год назад
Родитель
Сommit
6fd5edc068
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      src/sentry/auth/helper.py

+ 0 - 5
src/sentry/auth/helper.py

@@ -108,11 +108,6 @@ class AuthIdentityHandler:
     request: HttpRequest
     identity: Mapping[str, Any]
 
-    def __post_init__(self) -> None:
-        # For debugging. TODO: Remove when tests are stable
-        if not isinstance(self.organization, RpcOrganization):
-            raise TypeError
-
     @cached_property
     def user(self) -> User | AnonymousUser:
         email = self.identity.get("email")