Skip to content

Syntax error in format string #983

@kenya-sk

Description

@kenya-sk

There appear to be syntax errors in several files where format strings are missing "{}", which results in the output not matching intended strings.

For example, this issue can be founded at line 67 in tensorflow_quantum/datasets/cluster_state.py.
In addition, I identified similar errors in approximately in other 10 files.

# Format error
raise TypeError('qubits must be a list or np.ndarray. Given: '.format(
    type(qubits)))

# Correct
raise TypeError('qubits must be a list or np.ndarray. Given: {}'.format(
    type(qubits)))

Metadata

Metadata

Assignees

Labels

area/healthInvolves general matters of project configuration, health, maintenance, and similar concernsarea/pythonInvolves Python code

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions