forked from kornicameister/loguru-mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept variables (NameExpr) in loguru calls
Partially fixes kornicameister#49 Note that mypy _cannot_ type-check a format expression if it is not Final. E.g.: ```python from loguru import logger from typing import Final foo: Final = "bar" logger.info(foo, 1) # error: Not all arguments converted during string formatting foo = "bar" logger.info(foo, 1) # no error (and will fail at runtime) ``` This is a limitation with mypy and I don't think we can do much about it
- Loading branch information
1 parent
c176016
commit 9f268ea
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters