diff options
Diffstat (limited to 'pybind11/_version.py')
-rw-r--r-- | pybind11/_version.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pybind11/_version.py b/pybind11/_version.py index f8b795ee..1c310e0c 100644 --- a/pybind11/_version.py +++ b/pybind11/_version.py @@ -1,12 +1,12 @@ -# -*- coding: utf-8 -*- +from typing import Union -def _to_int(s): +def _to_int(s: str) -> Union[int, str]: try: return int(s) except ValueError: return s -__version__ = "2.6.2" +__version__ = "2.11.0" version_info = tuple(_to_int(s) for s in __version__.split(".")) |