Skip to content

Commit

Permalink
Fix pylint directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Mar 31, 2020
1 parent 9bec7c3 commit 6275a65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/zope/filerepresentation/interfaces.py
Expand Up @@ -87,7 +87,7 @@
# Pylint helpfully catches class definition errors, but they don't apply to
# interfaces.
# pylint:disable=inherit-non-class,no-method-argument,no-self-argument
# pylint:disable=unexpected-special-method
# pylint:disable=unexpected-special-method-signature

from zope.interface import Interface
from zope import schema
Expand Down Expand Up @@ -229,8 +229,8 @@ class IWriteDirectory(Interface):
"""Objects that should be treated as directories for writing
"""

def __setitem__(name, object):
"""Add the given `object` to the directory under the given name."""
def __setitem__(name, object): # pylint:disable=redefined-builtin
"""Add the given *object* to the directory under the given name."""

def __delitem__(name):
"""Delete the named object from the directory."""
Expand All @@ -239,7 +239,7 @@ def __delitem__(name):
class IDirectoryFactory(Interface):
"""Factory for :class:`IReadDirectory`/:class:`IWriteDirectory` objects."""

def __call__(name):
def __call__(name): # pylint:disable=signature-differs
"""Create a directory
where a directory is an object with adapters to IReadDirectory
Expand All @@ -250,7 +250,7 @@ def __call__(name):
class IFileFactory(Interface):
"""Factory for :class:`IReadFile`/:class:`IWriteFile` objects."""

def __call__(name, content_type, data):
def __call__(name, content_type, data): # pylint:disable=signature-differs
"""Create a file
where a file is an object with adapters to `IReadFile`
Expand Down

0 comments on commit 6275a65

Please sign in to comment.