Skip to content

Commit 2b7fd70

Browse files
has2k1isabelizimm
authored andcommitted
Fix NoneType for python < 3.10
1 parent dcb0de4 commit 2b7fd70

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

vetiver/ptype.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from functools import singledispatch
2-
from types import NoneType
2+
try:
3+
from types import NoneType
4+
except ImportError:
5+
# python < 3.10
6+
NoneType = type(None)
37

48
import pandas as pd
59
import numpy as np

0 commit comments

Comments
 (0)