-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore/schema handshake metadata pt2 (#74)
Why === Follow-up to #72 to account for `schema.json` files without metadata. What changed ============ If the `handshakeSchema` field is defined, then the parameter is required. Otherwise, the parameter is `Literal[None]`, which matches the previous behavior of the default. Due to the metadata field now being required, I had to remove the `= None` default parameter. I think this is alright. It'll mean that #73 will likely need to change to `handshake_metadata_factory: HandshakeType | Callable[[], Awaitable[HandshakeType]]` to avoid `async def stub() -> None: return None` just to satisfy the async requirement. It's somewhat challenging to capture the exact semantics we want here, but I think that's alright. Test plan ========= Do typechecks pass?
- Loading branch information
1 parent
d5aabb4
commit 7062bf6
Showing
9 changed files
with
90 additions
and
75 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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