Skip to content

Conversation

@jamadden
Copy link
Member

@jamadden jamadden commented Sep 1, 2018

Fixes #18

Some other vocabulary fixes while I was in there:

  • Make TreeVocubalary.fromDict only actually assign titles when a title is given. This makes it consistent with SimpleVocubalary.fromItems() and make more sense IMO. There were no tests for this, so I added some.

  • Give equality and hash methods to SimpleTerm and SimpleVocubalary.
    This was a confusing stumbling block in the implementation of Include a field's interface in equality and hashing. #51.

Fixes #18

Some other vocabulary fixes while I was in there:

- Make TreeVocubalary.fromDict only actually assign titles when a
  title is given. This makes it consistent with
  SimpleVocubalary.fromItems().

- Give equality and hash methods to SimpleTerm and SimpleVocubalary.
  This was a confusing stumbling block in the implementation of #51.
@jamadden jamadden merged commit e163d53 into master Sep 2, 2018
@jamadden jamadden deleted the issue18 branch September 2, 2018 03:07
@jamadden
Copy link
Member Author

jamadden commented Sep 2, 2018

Thanks!

mgorny added a commit to mgorny/zope.schema that referenced this pull request Sep 13, 2025
The runtime dependency on `setuptools` was only required for namespace
support.  Since `pkg_resources`-style namespaces have been removed
in zopefoundation#52 and there are no relevant imports left in the code, remove
the unnecessary dependency.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
icemac pushed a commit that referenced this pull request Sep 15, 2025
The runtime dependency on `setuptools` was only required for namespace
support.  Since `pkg_resources`-style namespaces have been removed
in #52 and there are no relevant imports left in the code, remove
the unnecessary dependency.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating vocabularies

3 participants