Skip to content

Commit

Permalink
Update NoneType import for Python 3.9 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Sep 4, 2024
1 parent de95f1b commit a1baf38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion glue_ar/common/scatter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from functools import partial
from numpy import clip, isfinite, isnan, ndarray, ones, sqrt
from types import NoneType
try:
from types import NoneType
except ImportError:
NoneType = type(None)
from typing import Callable, Dict, List, Optional, Tuple, Union


Expand Down

0 comments on commit a1baf38

Please sign in to comment.