Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pykalman / fix-p311-issues.patch
blob002c8b893aad2dec84083b76ac0fce881314b177
1 --- a/pykalman/utils.py
2 +++ b/pykalman/utils_copy.py
3 @@ -40,6 +40,10 @@
4 from scipy import linalg
7 +# monkey patch
8 +if not hasattr(inspect, 'getargspec'):
9 + inspect.getargspec = inspect.getfullargspec
11 def array1d(X, dtype=None, order=None):
12 """Returns at least 1-d array with data from X"""
13 return np.asarray(np.atleast_1d(X), dtype=dtype, order=order)