Skip to content

Fix type annotation in pandas. version #25949

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

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ follow_imports=silent
[mypy-pandas.conftest,pandas.tests.*]
ignore_errors=True

[mypy-pandas._version]
ignore_errors=True

[mypy-pandas.compat]
ignore_errors=True

Expand Down
5 changes: 3 additions & 2 deletions pandas/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import re
import subprocess
import sys
from typing import Dict

from pandas.compat import PY3

Expand Down Expand Up @@ -48,8 +49,8 @@ class NotThisMethod(Exception):
pass


LONG_VERSION_PY = {}
HANDLERS = {}
LONG_VERSION_PY = {} # type: Dict
HANDLERS = {} # type: Dict[str, Dict]


def register_vcs_handler(vcs, method): # decorator
Expand Down