GeezerVison is showing github.com — Ignore mypy errors for TypedDict extra_items · heffernane/clinicaio@954421d
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/clinicaio/image.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -160,7 +160,8 @@ def get_image_companion_path(self, extension: FileExtension) -> Path: |
160 | 160 | return self._get_image_base_full_path().with_suffix(f".{extension}") |
161 | 161 |
|
162 | 162 |
|
163 | | -class ImageScanInfo(TypedDict, extra_items=Any): |
| 163 | +# FIXME: https://github.com/python/mypy/issues/18176 |
| 164 | +class ImageScanInfo(TypedDict, extra_items=Any): # type: ignore |
164 | 165 | """ |
165 | 166 | `BIDS specification <https://bids-specification.readthedocs.io/en/stable/modality-agnostic-files/data-summary-files.html#scans-file>`__ |
166 | 167 | """ |
Collapse file
Copy file name to clipboardExpand all lines: src/clinicaio/session.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -368,7 +368,8 @@ def is_duplicated_image(img: Image) -> bool: |
368 | 368 |
|
369 | 369 |
|
370 | 370 | # Populated from sub-<label>/sub-<label>_sessions.tsv |
371 | | -class SessionInfo(TypedDict, extra_items=Any): |
| 371 | +# FIXME: https://github.com/python/mypy/issues/18176 |
| 372 | +class SessionInfo(TypedDict, extra_items=Any): # type: ignore |
372 | 373 | """ |
373 | 374 | `BIDS specification <https://bids-specification.readthedocs.io/en/stable/modality-agnostic-files/data-summary-files.html#sessions-file>`__ |
374 | 375 | """ |
|
Collapse file
Copy file name to clipboardExpand all lines: src/clinicaio/subject.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -277,7 +277,8 @@ def _populate_sessions_from_folder( |
277 | 277 |
|
278 | 278 |
|
279 | 279 | # Populated from participants.tsv from root of dataset |
280 | | -class SubjectInfo(TypedDict, extra_items=Any): |
| 280 | +# FIXME: https://github.com/python/mypy/issues/18176 |
| 281 | +class SubjectInfo(TypedDict, extra_items=Any): # type: ignore |
281 | 282 | """ |
282 | 283 | `BIDS specification <https://bids-specification.readthedocs.io/en/stable/modality-agnostic-files/data-summary-files.html#participants-file>`__ |
283 | 284 | """ |