Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage mypy to check str.format expressions #43

Commits on Oct 22, 2020

  1. Leverage mypy to check str.format expressions

    ```py
    from loguru import logger
    
    class Foo:
    bar = "baz"
    
    foo = Foo()
    
    logger.debug('The bar is "{my_foo.bar}"', my_foo=foo)
    logger.debug('The bar is "{my_foo.bar}"', my_foo="not foo")  # error: "str" has no attribute "bar"
    ```
    
    Let's not reinvent the wheel :)
    ThibaultLemaire committed Oct 22, 2020
    Configuration menu
    Copy the full SHA
    305ef28 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2020

  1. Configuration menu
    Copy the full SHA
    e1bcf4b View commit details
    Browse the repository at this point in the history