Skip to content

Commit

Permalink
deepsource fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Aug 8, 2021
1 parent c001f34 commit c1f3b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions userge/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async def start(self):
def __eq__(self, o: object) -> bool:
return isinstance(o, _AbstractUserge) and self.id == o.id

def __hash__(self) -> int:
def __hash__(self) -> int: # pylint: disable=W0235
return super().__hash__()


Expand Down Expand Up @@ -332,7 +332,8 @@ def _un_wrap(source):
if name.startswith("_"):
continue
wrapped = getattr(getattr(source, name), '__wrapped__', None)
if wrapped and (inspect.iscoroutinefunction(wrapped) or inspect.isasyncgenfunction(wrapped)):
if wrapped and (inspect.iscoroutinefunction(wrapped)
or inspect.isasyncgenfunction(wrapped)):
_un_wrapper(source, name, wrapped)


Expand Down
2 changes: 1 addition & 1 deletion userge/plugins/utils/paste.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def is_supported(self, url: str) -> bool:
return True
return False

async def paste(self, ses: aiohttp.ClientSession,
async def paste(self, ses: aiohttp.ClientSession, # pylint: disable=W0613
text: str, file_type: Optional[str]) -> Optional[str]:
""" returns the success url or None if failed """
return None
Expand Down

0 comments on commit c1f3b23

Please sign in to comment.