Skip to content

Commit

Permalink
Cannot use Self for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin-b committed Feb 14, 2024
1 parent 201166a commit cc6359a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions httpx_auth/_authentication.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Generator, Self
from typing import Generator

import httpx

Expand All @@ -16,12 +16,12 @@ def auth_flow(
next(authentication_mode.auth_flow(request))
yield request

def __add__(self, other) -> Self:
def __add__(self, other) -> "_MultiAuth":
if isinstance(other, _MultiAuth):
return _MultiAuth(*self.authentication_modes, *other.authentication_modes)
return _MultiAuth(*self.authentication_modes, other)

def __and__(self, other) -> Self:
def __and__(self, other) -> "_MultiAuth":
if isinstance(other, _MultiAuth):
return _MultiAuth(*self.authentication_modes, *other.authentication_modes)
return _MultiAuth(*self.authentication_modes, other)
Expand Down

0 comments on commit cc6359a

Please sign in to comment.