ruff
[`ruff`] Added `cls.__dict__.get('__annotations__')` check (`RUF063`)
#18233
Merged

[`ruff`] Added `cls.__dict__.get('__annotations__')` check (`RUF063`) #18233

dericcrago
AlexWaygood AlexWaygood added rule
AlexWaygood
dericcrago dericcrago force pushed from 34602f50 to 8669fd7c 222 days ago
github-actions
JelleZijlstra
JelleZijlstra commented on 2025-05-21
dericcrago
JelleZijlstra
JelleZijlstra commented on 2025-05-23
MichaReiser MichaReiser requested a review from dylwil3 dylwil3 219 days ago
MichaReiser
MichaReiser MichaReiser added python314
ntBre ntBre requested a review from ntBre ntBre 212 days ago
ntBre
ntBre commented on 2025-06-04
dericcrago dericcrago force pushed from 63854cd7 to 059941c4 203 days ago
dericcrago dericcrago force pushed from 8bfef8ee to b5a45a82 203 days ago
ntBre
ntBre approved these changes on 2025-06-18
dericcrago Added `cls.__dict__.get('__annotations__')` check for Python 3.10+ and
ff7d4526
dericcrago implemented PR review suggestions
c7a52156
dericcrago Trimmed message (slightly)
cdf11394
dericcrago Fixed usage of `typing-extensions`: module is installed & setting is …
6364a5bb
dericcrago implemented PR review suggestions
598eb97c
dericcrago renumbered to RUF063
04840b33
dericcrago updated to 'checker.report_diagnostic(ClassDictAnnotations, call.rang…
39722318
dericcrago updated suggestion message based on python version and typing-extensi…
0b5c64fa
dericcrago remove unnecessary block
bb5894e9
dericcrago improve message formatting
b11802e4
dericcrago rename to 'AnnotationsFromClassDict'
00cfbd8d
dericcrago Rename `AnnotationsFromClassDict` to `AccessAnnotationsFromClassDict`
c31b5d68
dericcrago dericcrago force pushed from b5a45a82 to c31b5d68 192 days ago
MichaReiser MichaReiser requested a review from ntBre ntBre 192 days ago
MichaReiser Merge branch 'main' into 17853-cls-dict-annotations
6def89e4
MichaReiser Merge branch 'main' into 17853-cls-dict-annotations
48a50009
ntBre
ntBre approved these changes on 2025-06-20
ntBre ntBre changed the title Added `cls.__dict__.get('__annotations__')` check [`ruff`] Added `cls.__dict__.get('__annotations__')` check (`RUF063`) 191 days ago
ntBre ntBre merged e66f1820 into main 191 days ago
dericcrago dericcrago deleted the 17853-cls-dict-annotations branch 191 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone