Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get, now & utcnow will now use docs found in ArrowFactory #511

Merged
merged 2 commits into from
Feb 10, 2018

Conversation

FHTMitchell
Copy link
Contributor

@FHTMitchell FHTMitchell commented Jan 18, 2018

Have taken the good documentation found in arrow.factory.ArrowFactory for the get, now and utcnow methods and replaced the somewhat lacking documentation for the wrappers in arrow.api. Now, IDEs and REPLs will produce the better documentation when asked to.

@codecov-io
Copy link

codecov-io commented Jan 18, 2018

Codecov Report

Merging #511 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #511   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          14     14           
  Lines        3189   3227   +38     
  Branches      229    229           
=====================================
+ Hits         3189   3227   +38
Impacted Files Coverage Δ
arrow/api.py 100% <100%> (ø) ⬆️
arrow/locales.py 100% <0%> (ø) ⬆️
tests/locales_tests.py 100% <0%> (ø) ⬆️
tests/arrow_tests.py 100% <0%> (ø) ⬆️

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 96cb222...c03ff6a. Read the comment docs.

arrow/api.py Outdated


# internal default factory.
_factory = ArrowFactory()


@wraps(_factory.get)
Copy link
Contributor

Choose a reason for hiding this comment

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

@wraps does more than just insert the documentation. I'd prefer to see get.__doc__ = _factory.get.__doc__, to ensure that only the docstring is modified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK Agreed -- done

@Syeberman
Copy link
Contributor

Thanks @FHTMitchell!

@Syeberman Syeberman merged commit b95077b into arrow-py:master Feb 10, 2018
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