Skip to content

pyright says it is not awaitable #17

Description

@irux
  • async_property version: 0.2.2
  • Python version: 3.10
  • Operating System: Windows

Description

I am having problems with pyright because of the types. when I try to await an async_cached_property I get the following hint:

  C:\bakdata\kpops\kpops\component_handlers\topic\proxy_wrapper.py:87:39 - error: "AsyncCachedPropertyDescriptor" is not awaitable (reportGeneralTypeIssues)
  C:\bakdata\kpops\kpops\component_handlers\topic\proxy_wrapper.py:87:39 - error: "AwaitableOnly" is not awaitable (reportGeneralTypeIssues)

What I Did

https://github.com/bakdata/kpops/blob/2f7212fa00660b4219cb4532c734ac220b330bdd/kpops/component_handlers/topic/proxy_wrapper.py#L106

https://github.com/bakdata/kpops/blob/2f7212fa00660b4219cb4532c734ac220b330bdd/kpops/component_handlers/topic/proxy_wrapper.py#L37

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions