Debian Codegraph @

rpython/annotator/test/test_signature.py

raw symbols SCIP
1 import py
2 from rpython.annotator.signature import _annotation_key, annotation
3
4 def test__annotation_key():
5 assert _annotation_key([[str]]) == ('list', ('list', str))
6 assert _annotation_key({str:(str, [str])}) == ('dict', (str, (str, ('list', str))))
7 for i in ([[str]], [str], (int, int, {str: [str]})):
8 assert hash(_annotation_key(i))