Skip to content

Commit 100808d

Browse files
committed
minor cleanup on util scripts
1 parent ff4b291 commit 100808d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

util/bump_version.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
import pkg_resources
77

8-
if TYPE_CHECKING:
9-
from packaging.version import Version
10-
118
try:
129
import pcapkit
1310
version = pcapkit.__version__
@@ -24,7 +21,7 @@
2421
raise RuntimeError('cannot find version')
2522

2623
# parse version and bump version
27-
ver_obj = pkg_resources.parse_version(version) # type: Version
24+
ver_obj = pkg_resources.parse_version(version)
2825
base_version = ver_obj.base_version
2926

3027
if ver_obj.is_devrelease:

0 commit comments

Comments
 (0)