You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pyright to generate a type stub the output is getting mangled.
To Reproduce
Install pyright and matplotlib
Run pyright --createstub matplotlib.axis
Look at the resulting typings/matplotlib.axis file; there are issues with multi-line strings. I'm not sure if there are any other issues or if it is just this.
Expected behavior
Output should preserve the docstrings.
Screenshots or Code
Excerpt from the output:
"""
Classes for the ticks and x and"""
_log = ...
GRIDLINE_INTERPOLATION_STEPS = ...
_line_inspector = ...
_line_param_names = ...
_line_param_aliases = ...
_gridline_param_names = ...
class Tick(martist.Artist):
"""
Abstract base class for the"""
def __init__(self, axes, loc, *, size=..., width=..., color=..., tickdir=..., pad=..., labelsize=..., labelcolor=..., zorder=..., gridOn=..., tick1On=..., tick2On=..., label1On=..., label2On=..., major=..., labelrotation=..., grid_color=..., grid_linestyle=..., grid_linewidth=..., grid_alpha=..., **kw) -> None:
"""
bbox is the Bound2D bou"""
...
This was with pyright 1.1.248
The text was updated successfully, but these errors were encountered:
The current logic truncates string literal expressions to 32 characters. This was done for the benefit of logging and error messages that include expressions. Truncating in the context of stub generate isn't appropriate, so I've updated the expression printing code to perform truncation conditionally based on a flag passed by the caller. This will be addressed in the next release.
Describe the bug
When using pyright to generate a type stub the output is getting mangled.
To Reproduce
pyright --createstub matplotlib.axis
typings/matplotlib.axis
file; there are issues with multi-line strings. I'm not sure if there are any other issues or if it is just this.Expected behavior
Output should preserve the docstrings.
Screenshots or Code
Excerpt from the output:
This was with pyright 1.1.248
The text was updated successfully, but these errors were encountered: