Add override decorator #1

Open
opened 2020-10-17 14:20:04 +02:00 by leon · 1 comment
leon commented 2020-10-17 14:20:04 +02:00 (Migrated from git.leon.wtf)

Used in leon/matrix-poll-bot.

This decorator will check, if a function with the same name is present in the parent class. Otherwise, it will raise an AssertionError to signal, that the decorated function does not override anything.

Used in [leon/matrix-poll-bot](https://git.leon.wtf/leon/matrix-poll-bot). This decorator will check, if a function with the same name is present in the parent class. Otherwise, it will raise an AssertionError to signal, that the decorated function does not override anything.
leon commented 2021-08-26 12:52:40 +02:00 (Migrated from git.leon.wtf)

unassigned @leon

unassigned @leon
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
leon/python-primedecs#1
No description provided.