law.target.base#

Custom base target definition.

Class Target#

class Target(**kwargs)[source]#

Bases: Target

complete(**kwargs)[source]#

Returns almost the same state information as exists() (called internally), but potentially also includes settings such as optional. All kwargs are forwarded to exists().

This method is mostly useful in conjunction with task implementations whereas the vanilla exists() method should be used when relying on the actual existence status.

abstract exists()[source]#

Returns True if the Target exists and False otherwise.