Skip to content

Conversation

scop
Copy link
Contributor

@scop scop commented Mar 10, 2019

The latter is deprecated in favor of collections.abc.Set, but just "set"
should suffice here.

The latter is deprecated in favor of collections.abc.Set, but just "set"
should suffice here.
@codecov
Copy link

codecov bot commented Mar 10, 2019

Codecov Report

Merging #509 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #509      +/-   ##
==========================================
- Coverage   95.21%   95.20%   -0.01%     
==========================================
  Files         302      302              
  Lines        2506     2502       -4     
==========================================
- Hits         2386     2382       -4     
  Misses        120      120              
Impacted Files Coverage Δ
dateparser/date.py 97.93% <100.00%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb79181...6017299. Read the comment docs.

warn(self.DATE_FORMATS_ERROR_MESSAGE, FutureWarning)
date_formats = [date_formats]
elif not (date_formats is None or isinstance(date_formats, (list, tuple, Set))):
elif not (date_formats is None or isinstance(date_formats, (list, tuple, set))):
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not exactly the same. Set would include subclasses of collections.abc.Set different than set, but I agree that it's better to simplify here, as another implementation shouldn't be used here.

@noviluni noviluni merged commit 8e8b4e4 into scrapinghub:master Apr 30, 2020
@scop scop deleted the isinstance-set branch April 30, 2020 15:58
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.

3 participants