Skip to content
Advertisement

Tag: python-attrs

Create a customer converter and validator using ATTRS

I am trying to learn attrs and I have two questions. Please note that I am using the ATTRS library, not ATTR. How do I create a converter to change typ to uppercase? —> I solved this question. The formula below is updated. :) How do I create a validator to ensure that typ is contained within a list? I’ve

Advertisement