add precondition_type convenience function #2372

Open
opened 2015-02-04 03:19:26 +00:00 by daira · 0 comments
daira commented 2015-02-04 03:19:26 +00:00
Owner

We have many instances of the pattern:

precondition(isinstance(avariable, atype), avariable)

It may be worth adding a precondition_type function so that this can be:

precondition_type(avariable, atype)
We have many instances of the pattern: ``` precondition(isinstance(avariable, atype), avariable) ``` It may be worth adding a `precondition_type` function so that this can be: ``` precondition_type(avariable, atype) ```
tahoe-lafs added the
code
minor
enhancement
1.10.0
labels 2015-02-04 03:19:26 +00:00
tahoe-lafs added this to the undecided milestone 2015-02-04 03:19:26 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#2372
No description provided.