Skip to content

docs/typing: validate method should support event as Any type #401

Closed

Description

@michaelbrewer

Problem

In some cases you want to use validate for something internal, like a downstream api call with returns a list of data:

Screen Shot 2021-04-17 at 2 52 47 PM

Currently validate type hints event as only a Dict, but it might be a List or Tuple etc..

Solution?

Just type event as Any

Activity

  1. heitorlessa commented on Apr 19, 2021

    @heitorlessa
    Contributor

    will be merged once checks pass - one of those that MyPy/Pyright will catch once in CI. Thanks again!!!

  2. added
    pending-releaseFix or implementation already in dev waiting to be released
    and removed
    triagePending triage from maintainers
    on Apr 19, 2021
  3. self-assigned this
    on Apr 19, 2021
  4. removed
    pending-releaseFix or implementation already in dev waiting to be released
    on Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions