Fixed import of NoneType (not in Python < 3.10).
@@ -2,7 +2,10 @@ import os
from abc import ABC, abstractmethod
from dataclasses import dataclass
from itertools import chain
+try:
from types import NoneType
+except ImportError:
+ NoneType = type(None)
from typing import (
Any,
Callable,
