Skip to content

UserAgent raises a mypy error #203

Open
@miketheman

Description

@miketheman

A simple example:

foo = UserAgent()
foo["device"]

Raises:

Value of type "UserAgent" is not indexable [index]

I think this has something to do with attrs, but haven't used it much in anger to understand the right way to fix it.

There may be a need to refactor to use @attrs.define instead of @attr.s, per https://www.attrs.org/en/stable/types.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions