generated from martinthomson/internet-draft-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce type hints in daf.py, tests/test_dap.py
One notable issue: The signature for `run_daf()` was previously ``` def run_daf(Daf, agg_param: Daf.AggParam, measurements: list[Daf.Measurement], nonces: list[bytes]): ``` We want to treat `Daf` as a generic parameter, but that's not how it's interpreted by mypy. The first argument, `Daf`, shadows `class Daf` above, but the type hints here actually refer to the shadowed variable. To resolve this, simply remove the type hints.
- Loading branch information
Showing
2 changed files
with
52 additions
and
37 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
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