Skip to content

Commit f66d0e5

Browse files
committed
fix: use Union instead of |
1 parent 3207c33 commit f66d0e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

myst_nb/core/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Configuration for myst-nb."""
22
import dataclasses as dc
33
from enum import Enum
4-
from typing import Any, Callable, Iterable, Sequence
4+
from typing import Any, Callable, Iterable, Sequence, Union
55

66
from myst_parser.config.dc_validators import (
77
ValidatorType,
@@ -378,7 +378,7 @@ def __post_init__(self):
378378
},
379379
repr=False,
380380
)
381-
mime_priority_overrides: Sequence[tuple[str, str, int | None]] = dc.field(
381+
mime_priority_overrides: Sequence[tuple[str, str, Union[int, None]]] = dc.field(
382382
default=(),
383383
metadata={
384384
"validator": deep_iterable(

0 commit comments

Comments
 (0)