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.
parent cdf11225faed
......@@ -17,8 +17,6 @@
# with rql. If not, see <>.
"""Types declarations for RQL types annotations"""
import sys
from typing import (
......@@ -34,10 +32,8 @@ from typing import (
if sys.version_info[0] == 3 and sys.version_info[1] >= 8:
from typing import Protocol # Python 3.8 or above
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