Skip to content

Commit a4d38d3

Browse files
committed
remove TypeAlias for older Py support
1 parent f3f27c9 commit a4d38d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

toytree/pcm/src/traits/phylosignal_k.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"""
4444

4545

46-
from typing import Union, Sequence, TypeAlias
46+
from typing import Union, Sequence
4747
import numpy as np
4848
import pandas as pd
4949
from toytree.core import ToyTree
@@ -53,7 +53,7 @@
5353

5454

5555
logger = logger.bind(name="toytree")
56-
feature: TypeAlias = Union[str, Sequence[float], pd.Series, pd.DataFrame]
56+
feature = Union[str, Sequence[float], pd.Series, pd.DataFrame]
5757
__all__ = ["phylogenetic_signal_k"]
5858

5959

@@ -339,3 +339,4 @@ def _likelihood(theta: float, V: np.ndarray, E: np.ndarray, y: np.ndarray) -> fl
339339
# get K w/ Error
340340
k = _phylogenetic_signal_k_with_se(tree=tree, data="t0", error="t1", test=0)
341341
logger.info(k)
342+
help(phylogenetic_signal_k)

0 commit comments

Comments
 (0)