Skip to content

Commit

Permalink
Merge pull request #17 from miaowware/revert-props
Browse files Browse the repository at this point in the history
revert renaming of property setters in 1a460d4
  • Loading branch information
classabbyamp authored Sep 27, 2021
2 parents c3b19f9 + 9b9baa0 commit 3b19534
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions callsignlookuptools/common/abcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class LookupAbc(ABC):
def __init__(self):
pass

@property
@property # type: ignore[misc]
@abstractmethod
def session(self):
pass

@session.setter # type: ignore[attr-defined] # python/mypy#1465
@session.setter # type: ignore[misc]
@abstractmethod
def set_session(self, val):
def session(self, val):
pass

@abstractmethod
Expand Down Expand Up @@ -57,8 +57,8 @@ def username(self) -> str:
"""
return self._username

@username.setter # type: ignore[attr-defined] # python/mypy#1465
def set_username(self, val: str) -> None:
@username.setter
def username(self, val: str) -> None:
self._username = val

@property
Expand All @@ -70,8 +70,8 @@ def password(self) -> str:
"""
return self._password

@password.setter # type: ignore[attr-defined] # python/mypy#1465
def set_password(self, val: str) -> None:
@password.setter
def password(self, val: str) -> None:
self._password = val

@property
Expand All @@ -83,8 +83,8 @@ def useragent(self) -> str:
"""
return self._useragent

@useragent.setter # type: ignore[attr-defined] # python/mypy#1465
def set_useragent(self, val: str) -> None:
@useragent.setter
def useragent(self, val: str) -> None:
self._useragent = val

@property
Expand All @@ -96,8 +96,8 @@ def session_key(self) -> str:
"""
return self._session_key

@session_key.setter # type: ignore[attr-defined] # python/mypy#1465
def set_session_key(self, val: str) -> None:
@session_key.setter
def session_key(self, val: str) -> None:
self._session_key = val

@abstractmethod
Expand Down
8 changes: 4 additions & 4 deletions callsignlookuptools/common/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def session(self) -> requests.Session:
"""
return self._session

@session.setter # type: ignore[attr-defined] # python/mypy#1465
def set_session(self, val: requests.Session):
@session.setter
def session(self, val: requests.Session):
self._session = val


Expand Down Expand Up @@ -96,8 +96,8 @@ def session(self) -> Optional[aiohttp.ClientSession]:
"""
return self._session

@session.setter # type: ignore[attr-defined] # python/mypy#1465
def set_session(self, val: Optional[aiohttp.ClientSession]):
@session.setter
def session(self, val: Optional[aiohttp.ClientSession]):
self._session = val

async def start_session(self):
Expand Down

0 comments on commit 3b19534

Please sign in to comment.