Skip to content

[Bug]: Pylance assumes set_box_aspect zoom attribute as int #27957

@Larsimusrex

Description

@Larsimusrex

Bug summary

Type hint for set_box_aspect zoom attribute is assumed to be a int.

Code for reproduction

ax.set_box_aspect(None, zoom=0.9)

Actual outcome

Argument of type "float" cannot be assigned to parameter "zoom" of type "int" in function "set_box_aspect"
  "float" is incompatible with "int

Expected outcome

No error

Additional information

No response

Operating system

No response

Matplotlib Version

3.8.3

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions