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?

  • jtrek
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Technically correct , the best kind of correct.

    foo.lower() would have been a better example.