Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default reset implementation #8

Open
NithinChintala opened this issue Feb 2, 2023 · 0 comments
Open

Default reset implementation #8

NithinChintala opened this issue Feb 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@NithinChintala
Copy link
Contributor

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 = []

@NithinChintala NithinChintala added the enhancement New feature or request label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant