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?

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 7 months ago

Thanks for the article link. Worried code too much and don't study enough.

Appreciate the reading material.

  • source
  • parent