LCVcode / jockey

MIT License
2 stars 3 forks source link

Fix mypy errors #9

Closed LCVcode closed 6 months ago

LCVcode commented 6 months ago

20 errors exist in the code base as of the time of opening this issue.

status_keeper.py:75: error: "str" has no attribute "name" jockey.py:104: error: Item "None" of "Optional[Match[str]]" has no attribute "start" jockey.py:108: error: Item "None" of "Optional[Match[str]]" has no attribute "group" jockey.py:110: error: Item "None" of "Optional[Match[str]]" has no attribute "group" jockey.py:112: error: Item "None" of "Optional[Match[str]]" has no attribute "end" jockey.py:355: error: Return value expected jockey.py:386: error: Missing return statement jockey.py:409: error: Missing return statement jockey.py:429: error: Argument 2 to "is_app_principal" has incompatible type "Optional[str]"; expected "str" jockey.py:489: error: Argument 2 to "is_app_principal" has incompatible type "Optional[str]"; expected "str" jockey.py:523: error: Missing return statement jockey.py:568: error: Missing return statement jockey.py:626: error: Argument 2 to "check_filter_match" has incompatible type "Optional[str]"; expected "str" jockey.py:631: error: Argument 2 to "application_to_charm" has incompatible type "Optional[str]"; expected "str" jockey.py:633: error: Argument 2 to "check_filter_match" has incompatible type "Optional[str]"; expected "str" jockey.py:647: error: Argument 2 to "check_filter_match" has incompatible type "Optional[str]"; expected "str" jockey.py:653: error: Argument 2 to "machine_to_hostname" has incompatible type "Optional[str]"; expected "str" jockey.py:661: error: Argument 2 to "machine_to_ips" has incompatible type "Optional[str]"; expected "str" jockey.py:694: error: Invalid index type "Optional[ObjectType]" for "Dict[ObjectType, Optional[Callable[[Dict[str, Any], List[JockeyFilter]], Generator[str, None, None]]]]"; expected type "ObjectType" jockey.py:695: error: "None" not callable Found 20 errors in 2 files (checked 2 source files)