mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add a pychecker suppression.
This commit is contained in:
parent
7f232121c9
commit
5f253279d6
1 changed files with 4 additions and 0 deletions
|
@ -12,9 +12,13 @@ from email import MIMEBase
|
|||
class MIMENonMultipart(MIMEBase.MIMEBase):
|
||||
"""Base class for MIME multipart/* type messages."""
|
||||
|
||||
__pychecker__ = 'unusednames=payload'
|
||||
|
||||
def attach(self, payload):
|
||||
# The public API prohibits attaching multiple subparts to MIMEBase
|
||||
# derived subtypes since none of them are, by definition, of content
|
||||
# type multipart/*
|
||||
raise Errors.MultipartConversionError(
|
||||
'Cannot attach additional subparts to non-multipart/*')
|
||||
|
||||
del __pychecker__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue