-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
limit the length of
generics._limit_assigned_parameters
(#4083)
* limit the length of generics._limit_assigned_parameters * switch to using _limit_cache_size for both * add change description * correct `_limit_cache_size` cache * implemented LimitedDict * try using UserDict * try upgrading cython * stop LimitedDict from inheriting from dict * separate LimitedDict for typing checking :-( * fix for __class_getitem__
- Loading branch information
1 parent
5a61292
commit 8846ec4
Showing
4 changed files
with
84 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Limit the size of `generics._generic_types_cache` and `generics._assigned_parameters` | ||
to avoid unlimited increase in memory usage. |
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