Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Oct 12, 2024
1 parent c21ec2f commit 6530e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twine/commands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import io
import logging
import re
from typing import Dict, List, Optional, Tuple, cast
from typing import Dict, List, Optional, Sequence, Tuple, cast

import readme_renderer.rst
from rich import print
Expand Down Expand Up @@ -111,7 +111,7 @@ def _check_file(
)

# Check classifiers
dist_classifiers = cast(Optional[List[str]], metadata["classifiers"])
dist_classifiers = cast(Sequence[str], metadata["classifiers"])
for classifier in dist_classifiers:
if classifier not in all_classifiers:
errors.append(
Expand Down

0 comments on commit 6530e6d

Please sign in to comment.