Skip to content

Commit 9bd5cec

Browse files
committed
fix: Import Self from typing_extensions
1 parent b770373 commit 9bd5cec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ classifiers = [
2323
requires-python = ">=3.8"
2424
dependencies = [
2525
"bidsschematools >=0.11",
26+
"typing_extensions",
2627
"attrs",
2728
"httpx",
2829
]

src/bids_validator/types/files.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
import stat
66
from functools import cached_property
77
from pathlib import Path
8-
from typing import Dict, Self, Union
8+
from typing import Dict, Union
99

1010
import attrs
11+
from typing_extensions import Self # PY310
1112

1213
__all__ = ('FileTree',)
1314

0 commit comments

Comments
 (0)