-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to clean up new experimental controllers a bit (#2133)
* Remove file-wide type: ignore from input/inputs.py * Remove type ignore line * Ugly oneliner fix for mypy redefinition error * Convert input.mapping types to class-based TypedDict * Convert RawInputManager to class-based TypedDict * Turn O(N) elif ladder into O(1) type hash * Move INPUT_TYPE_TOCLASS and stop local clobber of input builtin * Compact another O(N) builder into an O(1) map lookup * Collapse instance parsing into a function * Simplify Mapping's monster O(N) x isinstance elif chain * Add CLASS_TO_INPUT_TYPE dict * Use new table tot simplify Mapping's isinstance elif ladder * Move extracted parse_instance func into inputs where it belongs * Replace O(N) elif block with O(1) type hash parse_instance call * Clean up unused import * WIP notes * Restore file-wide type ignores for the moment * Newline at EOF * Add some temp comments * Fix random 1 typo
- Loading branch information
Showing
3 changed files
with
79 additions
and
85 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
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