Version should be the normal NumPy version, e.g. "1.25"
(self, version)
| 101 | |
| 102 | class MinVersion: |
| 103 | def __init__(self, version): |
| 104 | """ Version should be the normal NumPy version, e.g. "1.25" """ |
| 105 | major, minor = version.split(".") |
| 106 | self.version = f"NPY_{major}_{minor}_API_VERSION" |
| 107 | |
| 108 | def __str__(self): |
| 109 | # Used by version hashing: |