-
Notifications
You must be signed in to change notification settings - Fork 275
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: spulec/freezegun
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.5.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: spulec/freezegun
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.5.1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 9 commits
- 5 files changed
- 4 contributors
Commits on Apr 25, 2024
-
## `FrozenDateTimeFactory.tick` The `delta` argument is capable of handling `float`s. In previous versions of freezgun, the `.pyi` type annotations were correctly reflecting that. For some reason, when moving the type annotations into the `.py` file, this information got lost. Further, checking for `isinstance(delta, numbers.Real)` is probably not what was intended as `fraction.Fraction` is a subclass of `Real`, but will cause an error when passed into `datetime.timedelta(seconds=delta)`. ## `StepTickTimeFactory.tick` The same issue with the type hint applies here. Fruther, passing an integer/float `delta` would lead to that number being added to the frozen `datetime.datetime`, which is not a valid operation (`TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'int'`).
Configuration menu - View commit details
-
Copy full SHA for c963608 - Browse repository at this point
Copy the full SHA c963608View commit details
Commits on May 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d2872d0 - Browse repository at this point
Copy the full SHA d2872d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for be779f4 - Browse repository at this point
Copy the full SHA be779f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 023c7a3 - Browse repository at this point
Copy the full SHA 023c7a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for aecc78a - Browse repository at this point
Copy the full SHA aecc78aView commit details -
Configuration menu - View commit details
-
Copy full SHA for df263dc - Browse repository at this point
Copy the full SHA df263dcView commit details
Commits on May 8, 2024
-
Merge pull request #546 from robsdedude/patch-1
Fix `tick` delta type handling
Configuration menu - View commit details
-
Copy full SHA for ea054a3 - Browse repository at this point
Copy the full SHA ea054a3View commit details
Commits on May 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e0f2c3c - Browse repository at this point
Copy the full SHA e0f2c3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f9fac4 - Browse repository at this point
Copy the full SHA 3f9fac4View commit details
There are no files selected for viewing