Browse Source

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 year ago
parent
commit
6fd5edc068
1 changed files with 0 additions and 5 deletions
  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")