Skip to content

Commit f608bc2

Browse files
committed
mypy fix
1 parent aa91f91 commit f608bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

permuta/permutils/pin_words.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from collections import defaultdict
77
from functools import lru_cache
88
from pathlib import Path
9-
from typing import DefaultDict, Dict, Iterator, List, Set, Tuple
9+
from typing import DefaultDict, Dict, Iterator, List, Optional, Set, Tuple
1010

1111
from automata.fa.dfa import DFA
1212
from automata.fa.nfa import NFA
@@ -497,7 +497,7 @@ def load_dfa_for_perm(cls, perm) -> "DFA":
497497
path = Path(directory)
498498
filename = f"{''.join(str(i) for i in perm)}.txt"
499499
path = path / filename
500-
dfa: "DFA" = None
500+
dfa: Optional["DFA"] = None
501501
if not path.is_file():
502502
cls.store_dfa_for_perm(perm)
503503
with open(str(path), "r") as file_object:

0 commit comments

Comments
 (0)