-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a NamedTuple instead of a TypedDict for TraceFragment
Summary: Let's use a `NamedTuple` instead of a `TypedDict` for `TraceFragment`. NamedTuple has a more compact representation (it is a `tuple` under the hood) and gives stronger type guarantees (cannot add arbitrary key-value pairs). Reviewed By: tianhan0 Differential Revision: D58524515 fbshipit-source-id: 2a533174255e98e0020e64f9639012f212af6349
- Loading branch information
1 parent
8c0e21d
commit 81c777f
Showing
1 changed file
with
48 additions
and
59 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