Skip to content

Commit

Permalink
still clinging to 3.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzoic committed Aug 22, 2024
1 parent d5ddef4 commit e4e2fed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion countess/plugins/python.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import builtins
import math
import re
from types import BuiltinFunctionType, CodeType, FunctionType, ModuleType, NoneType
from types import BuiltinFunctionType, CodeType, FunctionType, ModuleType
from typing import Any

import numpy as np
Expand All @@ -12,6 +12,9 @@
from countess.core.parameters import BooleanParam, TextParam
from countess.core.plugins import PandasTransformDictToDictPlugin

# For 3.9 compatibility
NoneType = type(None)

# XXX pretty sure this is a job for ast.parse rather than just
# running compile() and exec() but that can wait.
# Builtins are restricted but there's still plenty of things which
Expand Down

0 comments on commit e4e2fed

Please sign in to comment.