Skip to content

Commit 1beae6c

Browse files
committed
Fix type error
1 parent 2867c26 commit 1beae6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

twine/commands/check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import io
1919
import logging
2020
import re
21-
from typing import Dict, List, Optional, Tuple, cast
21+
from typing import Dict, List, Optional, Sequence, Tuple, cast
2222

2323
import readme_renderer.rst
2424
from rich import print
@@ -111,7 +111,7 @@ def _check_file(
111111
)
112112

113113
# Check classifiers
114-
dist_classifiers = cast(Optional[List[str]], metadata["classifiers"])
114+
dist_classifiers = cast(Sequence[str], metadata["classifiers"])
115115
for classifier in dist_classifiers:
116116
if classifier not in all_classifiers:
117117
errors.append(

0 commit comments

Comments
 (0)