[Checkins] [zopefoundation/zope.interface] 46781f: Make @implementer and classImplements not re-decla...

Jason Madden noreply at github.com
Tue Apr 7 14:32:16 CEST 2020


  Branch: refs/heads/issue199
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: 46781f87ccbc02ae3d884e2dbe57b799c3804077
      https://github.com/zopefoundation/zope.interface/commit/46781f87ccbc02ae3d884e2dbe57b799c3804077
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M CHANGES.rst
    M docs/api/declarations.rst
    M src/zope/interface/declarations.py
    M src/zope/interface/tests/test_declarations.py

  Log Message:
  -----------
  Make @implementer and classImplements not re-declare redundant interfaces.

classImplementsOnly and @implementer_only can still be used to do that.


  Commit: 4cb3e63d3f45f0d4337bf890ec8508c3072be772
      https://github.com/zopefoundation/zope.interface/commit/4cb3e63d3f45f0d4337bf890ec8508c3072be772
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M docs/README.rst
    M src/zope/interface/declarations.py
    M src/zope/interface/tests/test_declarations.py
    M src/zope/interface/tests/test_registry.py

  Log Message:
  -----------
  Special case the base Interface in @implementer/classImplements to skip the redundancy detection for the sake of plone.app.caching.


  Commit: 97c0fbc4a3a532d1b2ec044994422d1a4ada4754
      https://github.com/zopefoundation/zope.interface/commit/97c0fbc4a3a532d1b2ec044994422d1a4ada4754
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M src/zope/interface/declarations.py
    M src/zope/interface/tests/test_declarations.py

  Log Message:
  -----------
  Fix implementerOnly when duplicating something inherited from the parent.

Seen in plone.app.testing as a problem in Products.GenericSetup.

Added tests for that.


Compare: https://github.com/zopefoundation/zope.interface/compare/a84b23181854...97c0fbc4a3a5


More information about the checkins mailing list