Bug 1901141
Summary: | ipython fails to build with Python 3.10: IPython.core.tests.test_oinspect.test_render_signature_long fails | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | ipython | Assignee: | Lumír Balhar <lbalhar> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dcantrell, lbalhar, mhroncok, michel, mrunge, orion, python-sig, thrnciar, tomspur |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipython-7.20.0-1.fc34 ipython-7.20.0-1.eln109 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-02-03 02:39:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1890881 |
Description
Miro Hrončok
2020-11-24 15:23:56 UTC
Python 3.10a2: >>> from IPython.core import oinspect >>> from inspect import signature >>> >>> def long_function( ... a_really_long_parameter: int, ... and_another_long_one: bool = False, ... let_us_make_sure_this_is_looong: Optional[str] = None, ... ) -> bool: pass ... >>> print(oinspect._render_signature(signature(long_function), long_function.__name__)) long_function( a_really_long_parameter: 'int', and_another_long_one: 'bool' = False, let_us_make_sure_this_is_looong: 'Optional[str]' = None, ) -> 'bool' but Python 3.10a3 (from master branch compiled locally today): >>> from IPython.core import oinspect >>> from typing import Optional >>> from inspect import signature >>> def long_function( ... a_really_long_parameter: int, ... and_another_long_one: bool = False, ... let_us_make_sure_this_is_looong: Optional[str] = None, ... ) -> bool: pass ... >>> print(oinspect._render_signature(signature(long_function), long_function.__name__)) long_function( a_really_long_parameter: int, and_another_long_one: bool = False, let_us_make_sure_this_is_looong: Optional[str] = None, ) -> bool See the '' around type annotations. The latter one looks like the testing option for Python 3.9 and higher so it should pass. Could you please try it one more time when the latest release will be in COPR? FEDORA-2021-9aeb216830 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2021-467d41a8f8 has been pushed to the Fedora ELN stable repository. If problem still persists, please make note of it in this bug report. |