Skip to content

[ty] Preserve decorated function identity for deprecation#25596

Closed
charliermarsh wants to merge 5 commits into
mainfrom
charlie/fix-deprecated-decorator-factory
Closed

[ty] Preserve decorated function identity for deprecation#25596
charliermarsh wants to merge 5 commits into
mainfrom
charlie/fix-deprecated-decorator-factory

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

No description provided.

@astral-sh-bot astral-sh-bot Bot added the ty Multi-file analysis & type inference label Jun 3, 2026
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Jun 3, 2026

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 91.94%. The percentage of expected errors that received a diagnostic held steady at 87.09%. The number of fully passing files held steady at 92/134.

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Jun 3, 2026

Memory usage report

Summary

Project Old New Diff Outcome
prefect 685.15MB 690.66MB +0.80% (5.51MB)
sphinx 252.45MB 254.43MB +0.78% (1.98MB)
trio 105.57MB 106.20MB +0.59% (642.36kB)
flake8 41.86MB 42.04MB +0.43% (183.36kB)

Significant changes

Click to expand detailed breakdown

prefect

Name Old New Diff Outcome
Type<'db>::class_member_with_policy_ 18.41MB 20.05MB +8.91% (1.64MB)
infer_definition_types 89.17MB 90.28MB +1.24% (1.11MB)
Type<'db>::member_lookup_with_policy_ 17.24MB 18.23MB +5.70% (1006.47kB)
StaticClassLiteral<'db>::implicit_attribute_inner_ 7.05MB 8.00MB +13.53% (976.72kB)
place_by_id 5.01MB 5.81MB +16.11% (825.55kB)
lookup_dunder_new_inner 313.30kB 329.12kB +5.05% (15.81kB)

sphinx

Name Old New Diff Outcome
Type<'db>::class_member_with_policy_ 7.96MB 8.61MB +8.15% (664.36kB)
Type<'db>::member_lookup_with_policy_ 7.29MB 7.71MB +5.77% (431.00kB)
infer_definition_types 23.39MB 23.74MB +1.49% (356.05kB)
StaticClassLiteral<'db>::implicit_attribute_inner_ 2.39MB 2.72MB +13.57% (332.23kB)
place_by_id 1.37MB 1.60MB +16.74% (235.45kB)
lookup_dunder_new_inner 120.47kB 126.28kB +4.82% (5.81kB)

trio

Name Old New Diff Outcome
Type<'db>::class_member_with_policy_ 2.01MB 2.18MB +8.40% (172.78kB)
infer_definition_types 7.55MB 7.68MB +1.80% (139.00kB)
Type<'db>::member_lookup_with_policy_ 1.94MB 2.08MB +6.98% (138.83kB)
StaticClassLiteral<'db>::implicit_attribute_inner_ 739.48kB 837.96kB +13.32% (98.48kB)
place_by_id 557.89kB 648.67kB +16.27% (90.78kB)
lookup_dunder_new_inner 54.21kB 56.72kB +4.64% (2.52kB)
infer_deferred_types 2.11MB 2.11MB -0.00% (12.00B)
function_known_decorators 298.91kB 298.89kB -0.00% (12.00B)

flake8

Name Old New Diff Outcome
Type<'db>::class_member_with_policy_ 596.34kB 645.89kB +8.31% (49.55kB)
StaticClassLiteral<'db>::implicit_attribute_inner_ 311.76kB 354.57kB +13.73% (42.81kB)
Type<'db>::member_lookup_with_policy_ 575.02kB 610.80kB +6.22% (35.78kB)
infer_definition_types 1.79MB 1.82MB +1.69% (30.93kB)
place_by_id 140.96kB 164.43kB +16.65% (23.47kB)
lookup_dunder_new_inner 19.57kB 20.39kB +4.23% (848.00B)

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Jun 3, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
deprecated 1 0 0
Total 1 0 0

Raw diff:

pytest (https://github.com/pytest-dev/pytest)
+ testing/test_config.py:3060:29 warning[deprecated] The function `inicfg` is deprecated: config.inicfg is deprecated, use config.getini() to access configuration values instead.

Full report with detailed diff (timing results)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant