Skip to content

Commit

Permalink
Minor linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirosen committed Jan 1, 2025
1 parent 1435f8a commit e9aa64e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/check_jsonschema/cli/parse_result.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import enum
import sys
import typing as t

import click
Expand All @@ -11,11 +10,6 @@
from ..regex_variants import RegexImplementation, RegexVariantName
from ..transforms import Transform

if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal


class SchemaLoadingMode(enum.Enum):
filepath = "filepath"
Expand Down Expand Up @@ -51,11 +45,11 @@ def __init__(self) -> None:

def set_regex_variant(
self,
variant_opt: Literal["python", "nonunicode", "default"] | None,
variant_opt: t.Literal["python", "nonunicode", "default"] | None,
*,
legacy_opt: Literal["python", "nonunicode", "default"] | None = None,
legacy_opt: t.Literal["python", "nonunicode", "default"] | None = None,
) -> None:
variant_name: Literal["python", "nonunicode", "default"] | None = (
variant_name: t.Literal["python", "nonunicode", "default"] | None = (
variant_opt or legacy_opt
)
if variant_name:
Expand Down

0 comments on commit e9aa64e

Please sign in to comment.