diff options
-rwxr-xr-x | dlpcvp.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -155,7 +155,8 @@ def parse_spec(spec_file: Union[str, bytes]) -> LooseVersion: return LooseVersion(rest_of_line) -def get_spec_name(req: Request, proj: str, pkg: str, etag: OStr = None) -> OStr: +def get_spec_name(req: Request, proj: str, pkg: str, etag: OStr = None) -> \ + OStr: """Acquire version from the listing of the project directory. """ spec_files = [] # type: List[str] @@ -199,7 +200,8 @@ def get_spec_name(req: Request, proj: str, pkg: str, etag: OStr = None) -> OStr: return None -def get_version_from_pypi(name: str, con: DBConnType = None) -> Optional[LooseVersion]: +def get_version_from_pypi(name: str, con: DBConnType = None) -> \ + Optional[LooseVersion]: """ For the given name of module return the latest version available on PyPI. """ |