[074d3d]: / mne / utils / _typing.py

Download this file

15 lines (10 with data), 292 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
"""Shared objects used for type annotations."""
# Authors: The MNE-Python contributors.
# License: BSD-3-Clause
# Copyright the MNE-Python contributors.
import sys
if sys.version_info >= (3, 11):
from typing import Self
else:
from typing import TypeVar
Self = TypeVar("Self")