Closed amn closed 1 month ago
Only affects type checking, and MyPy has not complained (invoking it is part of the as of yet unpublished test suite), weirdly perhaps, but on https://github.com/amn/csspring/blob/b930beb96099df4b7aeaafe0c844801d8f8f17bd/src/csspring/selectors.py#L109, the type should rightfully be Product | None not just Product since parsing procedures may legitimately return None (signifying refusal to parse input).
Product | None
Product
None
Fixed with 2b7b40bbe83f6da2d49619c3c4c27d5b599487ef.
Only affects type checking, and MyPy has not complained (invoking it is part of the as of yet unpublished test suite), weirdly perhaps, but on https://github.com/amn/csspring/blob/b930beb96099df4b7aeaafe0c844801d8f8f17bd/src/csspring/selectors.py#L109, the type should rightfully be
Product | None
not justProduct
since parsing procedures may legitimately returnNone
(signifying refusal to parse input).