facebook/TestSlide

Validate that contexts are not async defs

Offen

#143 geöffnet am 07.04.2020

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (58 Forks)auto 404
TestSlide DSLeasyenhancementgood first issuehelp wanted

Repository-Metriken

Stars
 (147 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

This should yield a failure:

@context
def top(context):
  @context.sub_context
  async def sub(context):
     ...

But is currently being silently ignored. Let's turn this into a failure.

Check:

  • @context
  • @context.sub_context
  • @context.shared_context

Contributor Guide