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

Skip to content

Multiple places where Type Errors on cbook.warn_deprecated will happen #12817

Closed
@kbrose

Description

@kbrose

There's a few cbook.warn_deprecated calls that still use more than one positional argument, but the definition does not allow more than one positional argument:

def warn_deprecated(
        since, *, message='', name='', alternative='', pending=False,
        obj_type='attribute', addendum='', removal=''):

See https://lgtm.com/projects/g/matplotlib/matplotlib/alerts/?mode=list&rule=py%2Fcall%2Fwrong-arguments for a full list (10 as of writing, all instances of the alert were from this function). Some examples as of 6a61f93 include

I think most (all?) of these were introduced during #12440, probably just some missed find/replacements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions