-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and refactor
get_all_subclasses()
util in shampoo_types_test.py (…
…#75) Summary: Pull Request resolved: #75 1. Fixes the bug that recursive function did not include that `cls` itself into the return result. 2. Adds a new argument `include_cls_self` to the function to control whether to include the class itself in the result. It also includes docstrings to explain how this function works. Reviewed By: anana10c Differential Revision: D67802249 fbshipit-source-id: cb44a9b51e620f404cec30a5e49313e4e8a11b9c
- Loading branch information
1 parent
fe7cd45
commit c51e4e6
Showing
1 changed file
with
23 additions
and
6 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