Skip to content

Start using types-WebOb #2226

Closed
Closed
@Daverball

Description

@Daverball

Problem Statement

I've recently contributed type stubs for WebOb on typeshed, which have been merged and are now available to the public. Some of the Integrations refer to types defined in WebOb (e.g. PyramidIntegration), but don't yet make use of types-WebOb and as such are really operating on Any.

Solution Brainstorm

Install types-WebOb and fix any uncovered typing issues.

As a side note, I've noticed that sometimes you use dict[str, str] as the type annotation for environ, even though that is inaccurate. You should use _typeshed.wsgi.WSGIEnvironment which is currently an alias for dict[str, Any] but will ensure that your type hints for environ will remain consistent with the stdlib and any third party stubs managed through typeshed in the future.

The same goes for WSGIApplication and StartResponse defined within that module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions