resolve ruff check failing

This commit is contained in:
reniz-shah 2024-08-07 18:05:08 +05:30
parent 1b1df64534
commit 272b0caf6a

View File

@ -6,7 +6,6 @@ Leetcode link: https://leetcode.com/problems/valid-number/description/
"""
from enum import Enum
from typing import Dict
class CharType(Enum):
@ -27,7 +26,7 @@ class State(Enum):
EXP_NUMBER = "EXP_NUMBER"
state_machine: Dict[State, Dict[CharType, State]] = {
state_machine: dict[State, dict[CharType, State]] = {
State.INITIAL: {
CharType.NUMERIC: State.WHOLE,
CharType.SIGN: State.SIGNED,