Jace Browning
Jace Browning
`pendulum.instance(dt)` works for `datetime.datetime`, but how can I initialize a Pendulum object from an existing `datetime.date` (specifically a Django `DateField`)? --- My current workaround: ``` pendulum.parse(str(date_object)) ```
Closes #270
This will let us drop `typing_extensions` as a dependency and simplify CI jobs.
`List[int]` cannot be mapped to a converter when lazy annotations are enabled (`from __future__ import annotations`).
See this test reproducing the failure: https://github.com/jacebrowning/datafiles/blob/e8fc6fd7be8ab15897facfcfa5cc91982849958b/tests/test_orm_usage.py#L75-L80
There's a test demonstrating the expected behavior here: https://github.com/jacebrowning/datafiles/blob/79775941750c7bad8a3a00c1ba272a2f058286a0/tests/test_setup.py#L106-L112
This test demonstrates the expected functionality: https://github.com/jacebrowning/datafiles/blob/a51507b0d165cbc0d0e669ea702d55ea207f27ea/tests/test_saving.py#L408-L450 This appears to be an issue with the YAML library: https://sourceforge.net/p/ruamel-yaml/tickets/318/
This should test everything that https://github.com/jacebrowning/template-python/issues/62 mentions.
Also, MIT is probably a better default license.