Skip to content

configparser : get() can take str arguments #492

Closed
@jukebox

Description

@jukebox
[juke@jhebert:~/snip/python/config] 1 % cat config.py 
import configparser
c = configparser.ConfigParser()
c.read("file")
c.get("foo", "bar")


[juke@jhebert:~/snip/python/config] % mypy config.py
config.py:4: error: Argument 2 to "get" of "Mapping" has incompatible type "str"; expected Dict[str, str]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions