Skip to content

Missing type hints & readme updates #571

@gsoldatov

Description

@gsoldatov

As of v0.8.1, constructor of ResourceOptions does not have type hints, which causes an error, when type checking consumer code with MyPy in strict mode. A few functions & methods don't have the same issue, but could use type annotations, e.g.: custom_cors and CorsConfig.add.

There's also a couple of things that could be updated in the readme file:

  1. ResourceOptions class is missing s at the end in one the examples;
  2. @asyncio.coroutine could be replaced with async keyword.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions