Skip to content

In RawConfigParser "vars: _section" should be "vars: Optional[_section]" #2847

@jolaf

Description

@jolaf

Methods get*() and items() of RawConfigParser and SectionProxy declare argument vars=None.

However in the stubs they're defined as vars: _section, where _section = Mapping[str, str], which effectively creates problems when inheriting from ConfigParser and trying to follow the original defaults pattern.

Probably in all these methods it should be vars: Optional[_section].

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions