Skip to content

Conversation

@Akuli
Copy link
Collaborator

@Akuli Akuli commented Oct 13, 2021

Discovered in #6161

The implementation has if isinstance(languages, (list, tuple, Set)): where Set is imported from collections.abc. It is a bit weird how it allows arbitrary sets (such as some_dict.keys()), but not arbitrary sequences (such as deques).

@Akuli Akuli changed the title dateparser.search.search_dates: allow arbitrary-length tuples dateparser.search.search_dates: allow arbitrary-length tuples for languages argument Oct 13, 2021
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this!

@Akuli Akuli merged commit f30b5ae into python:master Oct 13, 2021
@Akuli Akuli deleted the dateparser-tuple branch October 13, 2021 20:23
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.

2 participants