Skip to content

Commit

Permalink
Fix uniontype
Browse files Browse the repository at this point in the history
  • Loading branch information
blackary committed Apr 18, 2023
1 parent 296e2ce commit 0027231
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/streamlit_extras/function_explorer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
from __future__ import annotations

import inspect

try:
from types import UnionType
except ImportError:
UnionType = type(int | float) # type: ignore
from types import UnionType
from typing import Any, Callable, NamedTuple, get_args

import pandas as pd
Expand All @@ -15,7 +11,6 @@
from .. import extra

NoneType = type(None)
# UnionType = type(Union[int, float])


class Argument(NamedTuple):
Expand Down

0 comments on commit 0027231

Please sign in to comment.