Skip to content

Commit

Permalink
version 0.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
HFrost0 committed Apr 25, 2023
1 parent 2c1ba89 commit 573ea3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bilix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
Lighting-fast async download tool inspired by w
"""

__version__ = "0.18.0"
__version__ = "0.18.1"
__url__ = "https://github.com/HFrost0/bilix"
4 changes: 1 addition & 3 deletions bilix/download/base_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import time
from functools import wraps
from typing import Union, Optional, Tuple
from types import FunctionType
from contextlib import asynccontextmanager
from urllib.parse import urlparse
import aiofiles
Expand All @@ -22,8 +21,7 @@ class BaseDownloaderMeta(type):
def __new__(cls, name, bases, dct):
for attr_name, attr_value in dct.items():
# check if attr is a non-private coroutine function
if not attr_name.startswith('__') \
and isinstance(attr_value, FunctionType) and asyncio.iscoroutinefunction(attr_value):
if not attr_name.startswith('__') and asyncio.iscoroutinefunction(attr_value):
# function has path argument
if 'path' in (sig := inspect.signature(attr_value)).parameters:
dct[attr_name] = cls.ensure_path(attr_value, sig)
Expand Down

0 comments on commit 573ea3f

Please sign in to comment.