If we restrict the types that are allowed to be used as etags (and/or user-specified keys, see #4), then we could allow either a scalar etag or a function to create said etag to be passed via the same etag kwarg.
Potential set of types could be:
- strings
- ints
- bools
- None
- tuples of these
Basically, hashable builtin types.
If we restrict the types that are allowed to be used as etags (and/or user-specified keys, see #4), then we could allow either a scalar etag or a function to create said etag to be passed via the same
etagkwarg.Potential set of types could be:
Basically, hashable builtin types.