It is unfortunate that it can only easily be done for literals and built in types, and needs to understand the classes possibly defined in other modules before it could reliably work for anything else.
Im not sure how valuable it is if it only supports literals and built in types.
Ya, sorry this is a specific case. I found it while working on https:/ /github. com/PyCQA/ pycodestyle/ issues/ 371#issuecommen t-240614113 , and thought I better raise it here before I forgot it.
It is unfortunate that it can only easily be done for literals and built in types, and needs to understand the classes possibly defined in other modules before it could reliably work for anything else.
Im not sure how valuable it is if it only supports literals and built in types.