mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-04-28 17:35:33 +08:00
e088d13f2f
Py3's `shelve` is more restrictive, requiring keys to be `str`, whereas
Py2 allows any hashable type.
E.g.:
s = Shelf({})
s[1] = 'one' # raises AttributeError in py3, but it's OK in Py2