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

Fix logging.getLevelName() type hints #2730

Merged
merged 1 commit into from
Jan 17, 2019
Merged

Fix logging.getLevelName() type hints #2730

merged 1 commit into from
Jan 17, 2019

Commits on Jan 9, 2019

  1. Fix logging.getLevelName() type hints

    `logging.getLevelName()` can take either an `int` and returns a `str` or
    a `str` and returns an `int` when the level name (`str`) or level
    (`int`) is one of the registered log levels. If the value passed in
    isn't one of the registered log levels, it returns the string `"level
    %s" % lvl` where `lvl` is the value passed in to the function.
    
    Updated the type hints to better reflect this functionality.
    noseworthy committed Jan 9, 2019
    Configuration menu
    Copy the full SHA
    430155b View commit details
    Browse the repository at this point in the history