Skip to content

' ' is not accepted as a valid format specifier key name #2058

@cyang1

Description

@cyang1

When type-checking the following code:

print("%( )s world" % {' ': 'hello'})

mypy gives the error:

error: Unsupported format character '('

Sounds like mypy doesn't currently accept spaces as the keys for format specifiers.

Metadata

Metadata

Assignees

Labels

bugmypy got something wrong

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions