#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)

Change History (0)

Note: See TracTickets for help on using tickets.