Skip to content

Default reset implementation #8

@NithinChintala

Description

@NithinChintala

Would be nice to maybe think about default reset methods for certain rules often I end up writing

def reset():
   tmp = self.state.copy()
   self.state.clear()
   return tmp

Perhaps a ListStateRule or DictStateRule etc. that already sets self.state = []

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions