Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cinarizasyon committed Mar 5, 2022
1 parent 2cfeefa commit 9f71c29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dirty_equals/_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def __init__(
"""
Args:
approx: A value to approximately compare to.
delta: The allowable different when comparing to the value to now, if omitted 2 seconds is used,
ints and floats are assumed to represent seconds and converted to `timedelta`s.
gt: Value which the compared value should be greater than (after).
lt: Value which the compared value should be less than (before).
ge: Value which the compared value should be greater than (after) or equal to.
Expand Down
4 changes: 4 additions & 0 deletions docs/types/datetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ assert new_year_eve_nyc != IsDatetime(approx=new_year_naive, enforce_tz=False)
```

::: dirty_equals.IsNow

::: dirty_equals.IsDate

::: dirty_equals.IsToday

0 comments on commit 9f71c29

Please sign in to comment.