sherlock icon indicating copy to clipboard operation
sherlock copied to clipboard

Comply with PEP 561

Open ppfeister opened this issue 1 year ago • 1 comments

Add type hints for exposed sherlock function, add py.typed to comply with PEP 561 and allow for detection by mypy for static type checking.

ppfeister avatar Aug 28 '24 02:08 ppfeister

Odd. I figured Optional would be available without typing since other types like (lowercase) dict and (lowercase) list were brought into the std library, negating typing for many of those. Seems that it needs the import still.

Sometime tomorrow, I'll either add the import or switch it to the normal union without an import (str | None).

ppfeister avatar Aug 30 '24 05:08 ppfeister