mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
resolve ruff check failing
This commit is contained in:
parent
1b1df64534
commit
272b0caf6a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user