Closed xtuchyna closed 2 years ago
When trying to downgrade mypy
to 0.800
(as it was previously set) and running pre-commit
tests:
thoth/common/logging.py:324:30: error: Argument "integrations" to "init" has incompatible type "List[object]"; expected "Sequence[Integration]" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "bool" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "int" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "Optional[str]" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "List[str]" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "Union[Transport, Type[Transport], Callable[[Dict[str, Any]], None], None]" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "List[Union[type, str]]" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "str" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "Optional[Callable[[Dict[str, Any], Dict[str, Any]], Optional[Dict[str, Any]]]]" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "Optional[Callable[[Dict[str, Any]], Union[Real, bool]]]" [arg-type]
thoth/common/logging.py:326:19: error: Argument 5 to "init" has incompatible type "**Dict[str, float]"; expected "Experiments" [arg-type]
Found 11 errors in 1 file (checked 13 source files)
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
/sig user-experience
@harshad16 we actually removed mypy temporarily here but never patched it back to the pre-commit configuration
Good catch thanks for fixing and working on it. :pray:
/remove-lifecycle stale
Describe the bug Related to #1250
To Reproduce Steps to reproduce the behavior:
fix/update-pre-commit
)pipenv install --dev
pipenv shell
pre-commit run --all-files
Expected behavior At least installed type modules should help, but installing them seems to resolve no error
LOGS