Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Undefined names: 'obj_type' and 'cbook' #11550

Closed
@cclauss

Description

@cclauss

@anntzer I thought we had testing in place to catch these kind of errors before PR review.

flake8 testing of https://github.com/matplotlib/matplotlib on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./lib/matplotlib/__init__.py:917:31: F821 undefined name 'obj_type'
                version, key, obj_type, alternative=alt_key)
                              ^
./lib/matplotlib/gridspec.py:279:13: F821 undefined name 'cbook'
            cbook.warn_deprecated("2.2", "fig", obj_type="keyword argument",
            ^
./lib/matplotlib/gridspec.py:369:13: F821 undefined name 'cbook'
            cbook.warn_deprecated("2.2", "fig", obj_type="keyword argument",
            ^
3     F821 undefined name 'obj_type'
3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions