Skip to content

[Bug]: Missing typing for dates.py #26942

@chacabuco

Description

@chacabuco

Bug summary

with mypy, MinuteLocator results in error:

error: Call to untyped function "MinuteLocator" in typed context [no-untyped-call]

Code for reproduction

import matplotlib.dates as mdates

mdates.MinuteLocator(byminute=range(0, 60, 5))
# run mypy --strict

Actual outcome

error: Call to untyped function "MinuteLocator" in typed context [no-untyped-call]

Expected outcome

No Mypy error

Additional information

No response

Operating system

Ubuntu

Matplotlib Version

3.8.0

Matplotlib Backend

QTAgg

Python version

3.8.10

Jupyter version

No response

Installation

pip

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