Skip to content

Comments

Stabilize blank_line_before_decorated_class_in_stub#22740

Merged
dylwil3 merged 2 commits into2026-stylefrom
stabilize-blank_line_before_decorated_class_in_stub
Jan 23, 2026
Merged

Stabilize blank_line_before_decorated_class_in_stub#22740
dylwil3 merged 2 commits into2026-stylefrom
stabilize-blank_line_before_decorated_class_in_stub

Conversation

@dylwil3
Copy link
Collaborator

@dylwil3 dylwil3 commented Jan 19, 2026

Don't get excited! Opening PRs for all preview styles to decide.

@dylwil3 dylwil3 requested a review from MichaReiser as a code owner January 19, 2026 20:37
@dylwil3 dylwil3 added breaking Breaking API change formatter Related to the formatter labels Jan 19, 2026
@astral-sh-bot
Copy link

astral-sh-bot bot commented Jan 19, 2026

ruff-ecosystem results

Formatter (stable)

ℹ️ ecosystem check detected format changes. (+1 -0 lines in 1 file in 1 projects; 54 projects unchanged)

python/typeshed (+1 -0 lines across 1 file)

stubs/channels/channels/consumer.pyi~L39

 # Accepts any ASGI message dict with a required "type" key (str),
 # but allows additional arbitrary keys for flexibility.
 def get_handler_name(message: dict[str, Any]) -> str: ...
+
 @type_check_only
 class _ASGIApplicationProtocol(Protocol):
     consumer_class: AsyncConsumer

Formatter (preview)

✅ ecosystem check detected no format changes.

@dylwil3 dylwil3 force-pushed the stabilize-blank_line_before_decorated_class_in_stub branch 2 times, most recently from 17e6d7a to d38c457 Compare January 23, 2026 16:12
@dylwil3 dylwil3 force-pushed the stabilize-blank_line_before_decorated_class_in_stub branch from d38c457 to 6ed93e1 Compare January 23, 2026 16:20
@dylwil3 dylwil3 merged commit 44826a1 into 2026-style Jan 23, 2026
41 checks passed
@dylwil3 dylwil3 deleted the stabilize-blank_line_before_decorated_class_in_stub branch January 23, 2026 16:25
@dylwil3 dylwil3 mentioned this pull request Jan 23, 2026
3 tasks
ntBre added a commit that referenced this pull request Feb 3, 2026
Styles stabilized:

-
[`avoid_parens_for_long_as_captures`](#22743)
-
[`remove_parens_around_except_types`](#22741)
-
[`allow_newline_after_block_open`](#22742)
- [`no_chaperone_for_escaped_quote_in_triple_quoted_docstring
`](#22739)
- [`blank_line_before_decorated_class_in_stub
`](#22740)
-
[`parenthesize_lambda_bodies`](#22744)

To-do:

- [x] Change target branch to 0.15 release branch
- [x] Update documentation
- [x] Remove empty commit

---------

Co-authored-by: Brent Westbrook <[email protected]>
ntBre added a commit that referenced this pull request Feb 3, 2026
Styles stabilized:

-
[`avoid_parens_for_long_as_captures`](#22743)
-
[`remove_parens_around_except_types`](#22741)
-
[`allow_newline_after_block_open`](#22742)
- [`no_chaperone_for_escaped_quote_in_triple_quoted_docstring
`](#22739)
- [`blank_line_before_decorated_class_in_stub
`](#22740)
-
[`parenthesize_lambda_bodies`](#22744)

To-do:

- [x] Change target branch to 0.15 release branch
- [x] Update documentation
- [x] Remove empty commit

---------

Co-authored-by: Brent Westbrook <[email protected]>
ntBre added a commit that referenced this pull request Feb 3, 2026
Styles stabilized:

-
[`avoid_parens_for_long_as_captures`](#22743)
-
[`remove_parens_around_except_types`](#22741)
-
[`allow_newline_after_block_open`](#22742)
- [`no_chaperone_for_escaped_quote_in_triple_quoted_docstring
`](#22739)
- [`blank_line_before_decorated_class_in_stub
`](#22740)
-
[`parenthesize_lambda_bodies`](#22744)

To-do:

- [x] Change target branch to 0.15 release branch
- [x] Update documentation
- [x] Remove empty commit

---------

Co-authored-by: Brent Westbrook <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking API change formatter Related to the formatter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants