You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def wildcard_search(
pattern: str, items: list | None = None, use_package_data: bool = True
) -> list:
"""Search for items using regex pattern that can contain wildcard characters.
Parameters
(...)
"""
if items is None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
This syntax is only supported for Python 3.10 or later.
Can you please replace this function parts with typing.Optional for Python version compatibility ? (example)
Since I got a live app that works depending on your package, I can at least create a PR if you let me know.
Thanks
The text was updated successfully, but these errors were encountered:
import tcmb
raises this error in Python 3.9.12;
This syntax is only supported for Python 3.10 or later.
Can you please replace this function parts with typing.Optional for Python version compatibility ? (example)
Since I got a live app that works depending on your package, I can at least create a PR if you let me know.
Thanks
The text was updated successfully, but these errors were encountered: