Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d5fb93

Browse files
committed
DOC/API : removed documented input constraint
The docs on Path._fast_from_codes_and_verts said that `codes` can not be None, however the code does not check this and everyplace that `Path` uses `self._codes` it first verifies that the value is not `None` and `None` is a valid value to be passed to the Path `__init__` which falls through with the `_codes` attribute being `None`.
1 parent c9244df commit 8d5fb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def _fast_from_codes_and_verts(cls, verts, codes, internals=None):
172172
Parameters
173173
----------
174174
verts : numpy array
175-
codes : numpy array (may not be None)
175+
codes : numpy array
176176
internals : dict or None
177177
The attributes that the resulting path should have.
178178
Allowed keys are ``readonly``, ``should_simplify``,

0 commit comments

Comments
 (0)