Skip to content

Instantly share code, notes, and snippets.

@isidentical
Created April 13, 2019 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isidentical/0cb174730bd0fba4991aad9438c27e67 to your computer and use it in GitHub Desktop.
Save isidentical/0cb174730bd0fba4991aad9438c27e67 to your computer and use it in GitHub Desktop.
import collections.abc
MUTABLE_TYPES = tuple(
filter(
lambda item: isinstance(item, type) and item.__name__.startswith("Mutable"),
collections.abc.__dict__.values(),
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment