Skip to content

Commit

Permalink
fix: NoneType ImportError on python<3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
JamzumSum committed Nov 5, 2022
1 parent cfd96dd commit 8523dc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/yacs_stubgen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pathlib import Path
from types import NoneType
from typing import Any, Dict, Optional, Union

import yaml
Expand All @@ -8,7 +7,7 @@
typo_map = {
list: "T.Sequence",
tuple: "T.Sequence",
NoneType: "T.Any",
type(None): "T.Any",
}


Expand Down

0 comments on commit 8523dc1

Please sign in to comment.