For example:

class FooBar:
    def __init__(self):
        self.a: int = None
        self.foo: str = None

Is this bad practice/go against PEP guidelines or is it fine?

  • solrize@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    17 days ago

    If I need something like slots I’ll keep them in mind. Thanks for calling my attention to them.