plone / plone.supermodel

Provides XML import and export for schema interfaces based on zope.schema fields
5 stars 8 forks source link

Missing import! #42

Closed gforcada closed 1 year ago

gforcada commented 1 year ago

I was adding support for https://github.com/plone/meta to this repository and I did run tox -e format and tox -e lint on it.

To my surprise flake8 raised:

plone/supermodel/utils.py:132:30: F821 undefined name 'IVocabularyFactory'

And indeed, IVocabularyFactory is used but not imported 😱

Seems that a WIP commit remove it 😅

What's more problematic than that, is that we never noticed it because it is wrapped in a quite worrisome bare try/except (which of course flake8 complains about it 😄 ).