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

__doc__ of FastqcSingleScattered versions.py is None #117

Open
kinow opened this issue Sep 5, 2021 · 1 comment
Open

__doc__ of FastqcSingleScattered versions.py is None #117

kinow opened this issue Sep 5, 2021 · 1 comment

Comments

@kinow
Copy link
Contributor

kinow commented Sep 5, 2021

Hi,

f-strings are not valid __doc__'s: https://bugs.python.org/issue28739

Which causes the following code to evaluate __doc__ to None.

(venv) kinow@ranma:~/Development/python/workspace/janis-bioinformatics$ python
Python 3.8.3 (default, May 19 2020, 18:47:26) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from janis_bioinformatics.tools.babrahambioinformatics.fastqc.versions import FastqcSingleScattered
RDFLib Version: 6.0.0
>>> FastqcSingleScattered.__doc__
>>> FastqcSingleScattered.__doc__ is None
True
>>> 

Unfortunately I am not aware of a workaround for this.

@kinow kinow changed the title __doc__ of versions.py are None __doc__ of FastqcSingleScattered versions.py is None Sep 5, 2021
@kinow
Copy link
Contributor Author

kinow commented Sep 5, 2021

I was going to suggest to reduce code duplication in that class by re-using __doc__ in the bind_metadata function, then realized it was always None, and found the Python bug above.

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

No branches or pull requests

1 participant