Skip to content

Commit 4f78e3e

Browse files
committed
Fix Mypy type alias issue for FloatArray
1 parent 2d6ac15 commit 4f78e3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

machine_learning/gaussian_mixture_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"""
2424

2525
import warnings
26+
from typing import TypeAlias
2627

2728
import matplotlib.pyplot as plt
2829
import numpy as np
@@ -32,7 +33,7 @@
3233
warnings.filterwarnings("ignore")
3334

3435
TAG = "GAUSSIAN-MIXTURE/ "
35-
FloatArray = NDArray[np.float64]
36+
FloatArray: TypeAlias = NDArray[np.float64]
3637

3738

3839
class GaussianMixture:

0 commit comments

Comments
 (0)