Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 1.1.0 failing at _clean_text_signature with TypeError: expected string or bytes-like object #276

Open
m-melis opened this issue Jul 3, 2020 · 2 comments

Comments

@m-melis
Copy link

m-melis commented Jul 3, 2020

Version 1.0 has been ok. Possible related to #221

The method _clean_text_signature seems to be also receiving classes and not being able to handle them.

Added few print to debug. These are the result:

    print(sig)  # pytest.importorskip.__text_signature__
    print(type(sig))  # <class 'pytest.importorskip.__text_signature__'>
    print(start_pattern.search(sig))  # CRASH: TypeError

See the failing job: https://gitlab.com/secml/secml/-/jobs/622655243

Still investigating any possible source of the problem from our side.

Installed Sphinx modules:

    'sphinx.ext.autodoc',
    'sphinx.ext.autosummary',
    'sphinx.ext.viewcode',
    'sphinx.ext.intersphinx',
    'sphinx.ext.imgmath',
    'matplotlib.sphinxext.plot_directive',
    'numpydoc',
    'm2r',
    'nbsphinx',
    'nbsphinx_link'

Installed libraries:

numpydoc==1.1.0
Sphinx==2.4.4
sphinx-rtd-theme==0.5.0
@m-melis m-melis changed the title version 1.1 failing at _clean_text_signature with TypeError: expected string or bytes-like object version 1.1.0 failing at _clean_text_signature with TypeError: expected string or bytes-like object Jul 3, 2020
@jnothman
Copy link
Member

jnothman commented Jul 4, 2020 via email

@jnothman
Copy link
Member

jnothman commented Jul 4, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants