@@ -492,7 +492,10 @@ def __str__(self) -> str:
492492QuestionType : TypeAlias = Union [
493493 Literal ["tossup" , "bonus" , "all" ], Type [Tossup ], Type [Bonus ]
494494]
495+ """Type alias for question types."""
496+
495497SearchType : TypeAlias = Literal ["question" , "answer" , "all" ]
498+ """Type alias for query search types."""
496499
497500ValidDifficulties : TypeAlias = Literal [
498501 0 ,
@@ -518,12 +521,41 @@ def __str__(self) -> str:
518521 "9" ,
519522 "10" ,
520523]
524+ """Type alias for valid difficulties."""
525+
521526UnnormalizedDifficulty : TypeAlias = Optional [
522527 Union [Difficulty , ValidDifficulties , Iterable [Union [Difficulty , ValidDifficulties ]]]
523528]
529+ """Type alias for unnormalized difficulties. Union of `Difficulty`, `ValidDifficulties`,
530+ and `collections.abc.Iterable` containing either."""
531+
524532UnnormalizedCategory : TypeAlias = Optional [
525533 Union [Category , str , Iterable [Union [Category , str ]]]
526534]
535+ """Type alias for unnormalized categories. Union of `Category`, `str`, and
536+ `collections.abc.Iterable` containing either."""
537+
527538UnnormalizedSubcategory : TypeAlias = Optional [
528539 Union [Subcategory , str , Iterable [Union [Subcategory , str ]]]
529540]
541+ """Type alias for unnormalized subcategories. Union of `Subcategory`, `str`, and
542+ `collections.abc.Iterable` containing either."""
543+
544+
545+ __all__ = (
546+ "Tossup" ,
547+ "Bonus" ,
548+ "Packet" ,
549+ "QueryResponse" ,
550+ "AnswerJudgement" ,
551+ "Category" ,
552+ "Subcategory" ,
553+ "Difficulty" ,
554+ "Directive" ,
555+ "QuestionType" ,
556+ "SearchType" ,
557+ "ValidDifficulties" ,
558+ "UnnormalizedDifficulty" ,
559+ "UnnormalizedCategory" ,
560+ "UnnormalizedSubcategory" ,
561+ )
0 commit comments