Also, there seems to be some added docstrings that are not numpydoc style (google style?). shapely/algorithms/polylabel.py Outdated Show resolved shapely/constructive.py Outdated Show resolved shapely/coords.py Outdated Show resolved shapely/geometry/base.py Outdated Show resolved shapely/...
The framework for checking docstring style is flexible, and custom checks can be easily added, for example to cover NumPy docstring conventions. pydocstyle supports Python 3.4, 3.5, 3.6, and 3.7. Current build status All platforms: Current release info NameDownloadsVersionPlatforms Installing py...
"""Gets a numpy array of stacked frames with specific dtype. Args: dtype: The dtype of the stacked frames Returns: The array of stacked frames with dtype """ arr = self[:] if dtype is not None: return arr.astype(dtype) return arr def __len__(self): """Returns the number of fr...
from numpy.testing import assert_array_equal from gym import Space from gym.spaces import Box, Dict, MultiDiscrete, Tuple from gym.spaces import Box, Dict, MultiDiscrete, Space, Tuple from gym.vector.utils.spaces import batch_space, iterate from tests.vector.utils import CustomSpace, assert_rng...
library, e.g., for NumPy TypeVar('array') would be replaced with ndarray. @@ -33,6 +33,7 @@ @dataclass class finfo_object: """Dataclass returned by `finfo`.""" bits: int eps: float max: float @@ -42,6 +43,7 @@ class finfo_object: @dataclass class iinfo_object: """Dat...