anti
19271f9319
fix(types): P3 — annotate transport in all template protocol servers; 0 errors in templates/
- asyncio.Protocol (TCP): _transport: asyncio.Transport | None = None + cast() in
connection_made; assert guards in every method that directly accesses the field.
Files: pop3, smtp, mqtt, postgres, mssql, mongodb, imap, ldap, redis, mysql, sip, vnc.
- asyncio.DatagramProtocol (UDP): _transport: asyncio.DatagramTransport | None = None.
Files: snmp, tftp, SIPUDPProtocol.
- RDP: assert new_transport is not None after start_tls() to narrow Transport | None.
- FTP (Twisted): assert self.transport is not None + targeted type: ignore for imprecise
Twisted stubs (misc/override/arg-type/attr-defined), IReactorTCP cast for listenTCP.
- conpot: proc.stdout is None guard before iteration.
- Bonus fixes surfaced by annotation:
- smtp: get_payload(decode=True) bytes narrowing (arg-type on sha256)
- postgres: rename shadowed `msg` param to `err_msg` in _handle_startup
- mongodb: base64.binascii.Error → import binascii; binascii.Error
- imap: result: list[int] = [] (var-annotated)
2026-05-01 01:09:14 -04:00
..
2026-04-30 22:09:51 -04:00
2026-05-01 00:21:44 -04:00
2026-04-30 12:10:58 -04:00
2026-04-29 17:49:31 -04:00
2026-04-30 23:51:41 -04:00
2026-05-01 00:22:33 -04:00
2026-04-28 19:21:39 -04:00
2026-04-30 22:16:11 -04:00
2026-04-28 22:43:34 -04:00
2026-04-30 20:49:29 -04:00
2026-04-28 18:36:00 -04:00
2026-05-01 00:21:44 -04:00
2026-04-28 18:36:00 -04:00
2026-05-01 00:49:18 -04:00
2026-04-30 23:51:41 -04:00
2026-04-28 18:36:00 -04:00
2026-04-30 21:14:36 -04:00
2026-04-28 18:36:00 -04:00
2026-04-28 18:36:00 -04:00
2026-04-30 21:24:11 -04:00
2026-05-01 00:21:09 -04:00
2026-04-28 18:36:00 -04:00
2026-04-30 20:39:42 -04:00
2026-04-29 21:14:21 -04:00
2026-05-01 01:09:14 -04:00
2026-04-30 23:51:41 -04:00
2026-04-28 18:36:00 -04:00
2026-04-28 18:36:00 -04:00
2026-05-01 00:49:18 -04:00
2026-04-28 18:36:00 -04:00
2026-04-28 18:36:00 -04:00
2026-04-11 19:51:41 -04:00
2026-04-28 18:36:00 -04:00
2026-04-30 22:16:00 -04:00
2026-04-28 18:36:00 -04:00
2026-04-04 04:08:27 -03:00
2026-04-09 01:33:15 -04:00
2026-04-30 22:16:00 -04:00
2026-04-13 01:43:52 -04:00
2026-04-28 18:36:00 -04:00
2026-04-29 18:49:42 -04:00
2026-04-10 16:41:23 -04:00
2026-04-28 18:36:00 -04:00
2026-05-01 00:49:18 -04:00