mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-17 06:48:09 +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 enum import Enum
|
||||||
from typing import Dict
|
|
||||||
|
|
||||||
|
|
||||||
class CharType(Enum):
|
class CharType(Enum):
|
||||||
|
@ -27,7 +26,7 @@ class State(Enum):
|
||||||
EXP_NUMBER = "EXP_NUMBER"
|
EXP_NUMBER = "EXP_NUMBER"
|
||||||
|
|
||||||
|
|
||||||
state_machine: Dict[State, Dict[CharType, State]] = {
|
state_machine: dict[State, dict[CharType, State]] = {
|
||||||
State.INITIAL: {
|
State.INITIAL: {
|
||||||
CharType.NUMERIC: State.WHOLE,
|
CharType.NUMERIC: State.WHOLE,
|
||||||
CharType.SIGN: State.SIGNED,
|
CharType.SIGN: State.SIGNED,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user