Page MenuHome

Move requires_status to looper.decorators and type-annotate it
ClosedPublic

Authored by Anna Sirota (railla) on Feb 16 2021, 3:10 PM.

Details

Summary

Moves the requires_status decorator from looper.models to looper.decorators and annotates it.

Diff Detail

Event Timeline

Anna Sirota (railla) requested review of this revision.Feb 16 2021, 3:10 PM
Anna Sirota (railla) created this revision.
Anna Sirota (railla) edited the summary of this revision. (Show Details)Feb 16 2021, 3:12 PM
Sybren A. Stüvel (sybren) added inline comments.
looper/decorators.py
7

Since everything in Python is an object, what's your reason to use object here instead of Any?

This revision is now accepted and ready to land.Feb 16 2021, 3:38 PM
  • Consistent use of Any
Anna Sirota (railla) marked an inline comment as done.Feb 16 2021, 3:47 PM