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

Make instance() support all native types (date, time, datetime) #732

Merged
merged 2 commits into from
Aug 15, 2023

Conversation

sdispater
Copy link
Owner

The instance() function now accepts 'date', time or datetime instances.

This PR also reorganizes the DateTime code to make it inheritable, which was not the case due to the usage of instance().

Fixes #250
Fixes #203
Supersedes #707

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 15, 2023

CodSpeed Performance Report

Merging #732 will improve performances by 24.36%

Comparing feature/instance-all-types (e807ca0) with master (29c15a6)

Summary

🔥 1 improvements
✅ 1 untouched benchmarks

Benchmarks breakdown

Benchmark master feature/instance-all-types Change
🔥 test_format 2.8 ms 2.3 ms +24.36%

@sdispater sdispater merged commit 77d1791 into master Aug 15, 2023
21 checks passed
@sdispater sdispater deleted the feature/instance-all-types branch August 15, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant