Skip to content

SyntaxError: f-string: unmatched '[' #297

@maca8e

Description

@maca8e

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. from pypath.inputs import hmdb

Expected behavior
Import hmdb without error.

Traceback

from pypath.inputs import hmdb

Traceback (most recent call last):

  File /opt/anaconda3/envs/omni/lib/python3.11/site-packages/IPython/core/interactiveshell.py:3577 in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  Cell In[15],   line 1
    from pypath.inputs import hmdb

  File /opt/anaconda3/envs/omni/lib/python3.11/site-packages/pypath/inputs/hmdb/__init__.py:44
    from .structures import sdf

  File /opt/anaconda3/envs/omni/lib/python3.11/site-packages/pypath/inputs/hmdb/structures.py:26
    import pypath.formats.sdf as sdfparser

  File /opt/anaconda3/envs/omni/lib/python3.11/site-packages/pypath/formats/sdf.py:663
    msg = f'Indexed {len(self.names['id'])} records from `{self.fname}`.'
                                     ^
SyntaxError: f-string: unmatched '['

Log file

Desktop (please complete the following information):

  • OS: N/A
  • Python version: N/A
  • Version or commit hash N/A

Additional context
Will update with PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugProblem in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions