Skip to content

Commit

Permalink
fix: use Union instead of |
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Jun 23, 2023
1 parent 3207c33 commit f66d0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myst_nb/core/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Configuration for myst-nb."""
import dataclasses as dc
from enum import Enum
from typing import Any, Callable, Iterable, Sequence
from typing import Any, Callable, Iterable, Sequence, Union

from myst_parser.config.dc_validators import (
ValidatorType,
Expand Down Expand Up @@ -378,7 +378,7 @@ def __post_init__(self):
},
repr=False,
)
mime_priority_overrides: Sequence[tuple[str, str, int | None]] = dc.field(
mime_priority_overrides: Sequence[tuple[str, str, Union[int, None]]] = dc.field(
default=(),
metadata={
"validator": deep_iterable(
Expand Down

0 comments on commit f66d0e5

Please sign in to comment.