Opened at 2015-02-04T03:19:26Z
#2372 new enhancement
add precondition_type convenience function
Reported by: | daira | Owned by: | daira |
---|---|---|---|
Priority: | minor | Milestone: | undecided |
Component: | code | Version: | 1.10.0 |
Keywords: | cleanup | Cc: | |
Launchpad Bug: |
Description
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)
Note: See
TracTickets for help on using
tickets.