MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/core/code_generators/genapi.py:103–106  ·  view source on GitHub ↗

Version should be the normal NumPy version, e.g. "1.25"

(self, version)

Source from the content-addressed store, hash-verified

101
102class 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:

Callers

nothing calls this directly

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected