Skip to content

Commit 0f5c31c

Browse files
committed
Fix NoneType for python < 3.10
1 parent 8a58dce commit 0f5c31c

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)