Skip to content

Commit e9aa64e

Browse files
committed
Minor linting fix
1 parent 1435f8a commit e9aa64e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/check_jsonschema/cli/parse_result.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import enum
4-
import sys
54
import typing as t
65

76
import click
@@ -11,11 +10,6 @@
1110
from ..regex_variants import RegexImplementation, RegexVariantName
1211
from ..transforms import Transform
1312

14-
if sys.version_info >= (3, 8):
15-
from typing import Literal
16-
else:
17-
from typing_extensions import Literal
18-
1913

2014
class SchemaLoadingMode(enum.Enum):
2115
filepath = "filepath"
@@ -51,11 +45,11 @@ def __init__(self) -> None:
5145

5246
def set_regex_variant(
5347
self,
54-
variant_opt: Literal["python", "nonunicode", "default"] | None,
48+
variant_opt: t.Literal["python", "nonunicode", "default"] | None,
5549
*,
56-
legacy_opt: Literal["python", "nonunicode", "default"] | None = None,
50+
legacy_opt: t.Literal["python", "nonunicode", "default"] | None = None,
5751
) -> None:
58-
variant_name: Literal["python", "nonunicode", "default"] | None = (
52+
variant_name: t.Literal["python", "nonunicode", "default"] | None = (
5953
variant_opt or legacy_opt
6054
)
6155
if variant_name:

0 commit comments

Comments
 (0)