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

Use binary file objects with tomli to avoid DeprecationWarning #10933

Closed

Commits on Aug 4, 2021

  1. Use binary file objects with tomli

    tomli recently (in 1.2.0) deprecated support for passing file objects
    opened in text mode to `tomli.load`, which is causing
    DeprecationWarnings in CI runs (see
    https://app.travis-ci.com/github/python/mypy/jobs/529150228 for an
    example).
    
    This updates the 2 uses of tomli in mypy to open the toml file in binary
    mode, and also updates the requirements for tomli to be at least 1.1.0
    (because support for binary file objects was added in 1.1.0).
    pranavrajpal committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    95d3eaa View commit details
    Browse the repository at this point in the history