Feature or enhancement
It is scheduled to be removed in 3.16:
|
def _evaluate(self, globalns, localns, type_params=_sentinel, *, recursive_guard): |
|
import typing |
|
import warnings |
|
|
|
if type_params is _sentinel: |
|
typing._deprecation_warning_for_no_type_params_passed( |
|
"typing.ForwardRef._evaluate" |
|
) |
|
type_params = () |
|
warnings._deprecated( |
|
"ForwardRef._evaluate", |
|
"{name} is a private API and is retained for compatibility, but will be removed" |
|
" in Python 3.16. Use ForwardRef.evaluate() or typing.evaluate_forward_ref() instead.", |
|
remove=(3, 16), |
|
) |
🎉
Linked PRs
Feature or enhancement
It is scheduled to be removed in 3.16:
cpython/Lib/annotationlib.py
Lines 229 to 243 in 49918f5
Linked PRs
annotationlib.ForwardRef._evaluatefor 3.16 #149529