Commit e3c8d37b authored by Frank Bessou's avatar Frank Bessou 🍁
Browse files

fix: remove conditional around Protocol import

This allows to support pyright which doesn't support sub-typing of conditional types.
See https://github.com/microsoft/pyright/issues/2047.
parent cdf11225faed
......@@ -17,8 +17,6 @@
# with rql. If not, see <http://www.gnu.org/licenses/>.
"""Types declarations for RQL types annotations"""
import sys
from typing import (
TYPE_CHECKING,
Dict,
......@@ -34,10 +32,8 @@ from typing import (
Any,
)
if sys.version_info[0] == 3 and sys.version_info[1] >= 8:
from typing import Protocol # Python 3.8 or above
else:
from typing_extensions import Protocol
from typing_extensions import Protocol
__docformat__ = "restructuredtext en"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment