home.social

#twistedframework — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #twistedframework, aggregated by home.social.

  1. Okay, so, fans of the #TwistedFramework help me out here:

    I am mucking around with writing a simple new thing that, in order to have type annotations that aren't *completely* useless, needs to deal with the fact that Protocol and Factory aren't annotated.

    But adding annotations makes the entire framework notice that the pattern of paired-Protocol-and-Factory subclasses are inherently LSP violations, because .protocol and .factory are writable attributes and thus invariant.

    #python #mypy