Skip to content

Commit 00ce89d

Browse files
nbadami123facebook-github-bot
authored andcommitted
fix all uses of numpy.complex_
Summary: numpy.complex_ was replaced with numpy.complex128 in numpy 2.0+ ``` xbgr "complex_" --exclude "/numpy/" -f ".*\.(py$|pyi)" -l --max-bytes 500000000 | sed 's/fbsource\///' > ~/u while read l; do ~/ruff/target/release/ruff --config ~/fbsource3/fbcode/tp_foundation/codemods/pss/ruff/ruff.toml check --fix $l --npy201-subrules complex_ & done < ~/u ``` Reviewed By: florazzz Differential Revision: D77571286 fbshipit-source-id: 1c97db3bf57dce26842b4a045dca05e762871c44
1 parent 65d825a commit 00ce89d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hand_tracking_toolkit/hand_models/mano_hand_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# `np.float_` was removed in the NumPy 2.0 release.
4141
np.float64 = np.float_
4242
np.float = np.float_
43-
np.complex = np.complex_
43+
np.complex = np.complex128
4444
np.object = np.object_
4545
np.unicode = np.unicode_
4646
np.str = np.str_

0 commit comments

Comments
 (0)