Add top-level type any as semantic version of untyped#5056
Conversation
This type is a semantic version of `untyped` when the accepted or returned value is literally anything. And `untyped` should be used as a signal that the typing is not finished yet.
3613564 to
f4b627b
Compare
|
Very cool. AIUI both are logically equivalent type-wise, they are semantically not:
It's a bit like:
For context Maybe we can make a case upstream to have both? |
BenchmarksBenchmark execution time: 2025-11-18 10:13:15 Comparing candidate commit f4b627b in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 44 metrics, 2 unstable metrics. |
y9v
left a comment
There was a problem hiding this comment.
I definitely find the proposed change useful
What does this PR do?
Add a Datadog top-level semantic type
any.Motivation:
The type
anyis going to represent a scenario when the narrowing is impossible to do or when it doesn't make sense to do. And typeuntypedshould represent an actual untyped type (no time, not done, etc)Change log entry
No.
Additional Notes:
We can get more value out of
untypedchecks once we start moving toanyin case when it's really any type.How to test the change?
CI