Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/mail.py @ 51307:f4a0806081f2
pytype: drop the now useless assert
As the imported types are now used by type annotation, these ugly assert are
no longer needed.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 20 Dec 2023 22:17:03 +0100 |
parents | f15cb5111a1e |
children | f4733654f144 |
comparison
equal
deleted
inserted
replaced
51306:7bd7fcc711f2 | 51307:f4a0806081f2 |
---|---|
40 from .utils import ( | 40 from .utils import ( |
41 procutil, | 41 procutil, |
42 stringutil, | 42 stringutil, |
43 urlutil, | 43 urlutil, |
44 ) | 44 ) |
45 | |
46 | |
47 # keep pyflakes happy | |
48 assert [ | |
49 Any, | |
50 List, | |
51 Tuple, | |
52 Union, | |
53 ] | |
54 | 45 |
55 | 46 |
56 class STARTTLS(smtplib.SMTP): | 47 class STARTTLS(smtplib.SMTP): |
57 """Derived class to verify the peer certificate for STARTTLS. | 48 """Derived class to verify the peer certificate for STARTTLS. |
58 | 49 |