-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds caveats section to hamilton documentation
Currently there's just a note about postponed evaluation of annotations, but we can add more here over time. This is meant to be specific API reference stuff that doesn't really fit elsewhere.
- Loading branch information
1 parent
e0de334
commit 9a3991f
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Caveats | ||
|
||
## Delayed evaluation of annotation | ||
|
||
Hamilton works with [PEP-563](https://peps.python.org/pep-0563/), postponed evaluation of annotations. | ||
That said, it *does* force evaluation of type-hints when building the function graph. So, if you're using | ||
particularly complex/slow to load python types and expecting delay, know that they will have to be evaluted | ||
when the driver is instantiated and modules are passed, so Hamilton can inspect the types and build the | ||
function graph. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters