Skip to content

Commit 3458f52

Browse files
authored
explicit types (#109)
1 parent 80b9a91 commit 3458f52

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/trove_classifiers/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
from typing import Dict, List, Set
2+
13
# A set of classifier names
2-
sorted_classifiers = [
4+
sorted_classifiers: List[str] = [
35
"Development Status :: 1 - Planning",
46
"Development Status :: 2 - Pre-Alpha",
57
"Development Status :: 3 - Alpha",
@@ -805,12 +807,12 @@
805807
"Typing :: Typed",
806808
]
807809

808-
classifiers = set(sorted_classifiers)
810+
classifiers: Set[str] = set(sorted_classifiers)
809811

810812

811813
# A mapping from the deprecated classifier name to a list of zero or more valid
812814
# classifiers that should replace it
813-
deprecated_classifiers = {
815+
deprecated_classifiers: Dict[str, List[str]] = {
814816
"Natural Language :: Ukranian": ["Natural Language :: Ukrainian"],
815817
"Topic :: Communications :: Chat :: AOL Instant Messenger": [],
816818
}

0 commit comments

Comments
 (0)