Skip to content

Commit 47a6c57

Browse files
committed
Fix typo flagged by @coderabbitai; fix ordering and simplify imports
1 parent 473da51 commit 47a6c57

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Often humanities and cultural data include imprecise or uncertain temporal infor
4747
An `undate.Undate` is analogous to python’s builtin `datetime.date` object, but with support for varying degrees of precision and unknown information. You can initialize an undate with either strings or numbers for whichever parts of the date are known or partially known. An `Undate` can take an optional label.
4848

4949
```python
50-
from undate.undate import Undate
50+
from undate import Undate
5151

5252
november7 = Undate(2000, 11, 7)
5353
november = Undate(2000, 11)
@@ -135,13 +135,13 @@ NotImplementedError: Can't compare when one date falls within the other
135135

136136
An `UndateInterval` is a date range between two `Undate` objects. Intervals can be open-ended, allow for optional labels, and can calculate duration if enough information is known
137137
```python
138-
>>> from undate.undate import UndateInterval
138+
>>> from undate import UndateInterval
139139
>>> UndateInterval(Undate(1900), Undate(2000))
140140
<UndateInterval 1900/2000>
141141
>>> UndateInterval(Undate(1801), Undate(1900), label="19th century")
142142
>>> UndateInterval(Undate(1801), Undate(1900), label="19th century").duration().days
143143
36524
144-
<UndateInterval '19th century' (1801/19000)>
144+
<UndateInterval '19th century' (1801/1900)>
145145
>>> UndateInterval(Undate(1901), Undate(2000), label="20th century")
146146
<UndateInterval '20th century' (1901/2000)>
147147
>>> UndateInterval(latest=Undate(2000)) # before 2000

0 commit comments

Comments
 (0)