PMCC-BioinformaticsCore / janis-bioinformatics

Repository of bioinformatics tools for the pipelines module
GNU General Public License v3.0
2 stars 11 forks source link

__doc__ of FastqcSingleScattered versions.py is None #117

Open kinow opened 3 years ago

kinow commented 3 years ago

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 commented 3 years ago

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.