Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 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 Callable, Dict

from pandas.compat import PY3

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


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


def register_vcs_handler(vcs, method): # decorator
def decorate(f):
def register_vcs_handler(vcs: str, method: str) -> Callable: # decorator
def decorate(f: Callable) -> Callable:
if vcs not in HANDLERS:
HANDLERS[vcs] = {}
HANDLERS[vcs][method] = f
Expand Down