-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
F: commentsThe syntactic kind. Not in the language grammar, always on our minds. Best bugs.The syntactic kind. Not in the language grammar, always on our minds. Best bugs.T: bugSomething isn't workingSomething isn't working
Description
Hi,
I've switched to VS code and pyright recently, and I realized black is breaking a lot of # pyright: ignore
comments.
Input (both are valid for pyright):
asm_client: SecretsManagerClient = boto3.client("secretsmanager") # pyright: ignore[reportUnknownMemberType]
asm_client: SecretsManagerClient = boto3.client( # pyright: ignore[reportUnknownMemberType]
"secretsmanager"
)
Output:
asm_client: SecretsManagerClient = boto3.client(
"secretsmanager"
) # pyright: ignore[reportUnknownMemberType]
asm_client: SecretsManagerClient = boto3.client(
"secretsmanager"
) # pyright: ignore[reportUnknownMemberType]
Is there a way to stick the pyright comment to the original line ?
I'm using:
black, 23.9.1 (compiled: yes)
Python (CPython) 3.11.6
Thanks
DetachHead
Metadata
Metadata
Assignees
Labels
F: commentsThe syntactic kind. Not in the language grammar, always on our minds. Best bugs.The syntactic kind. Not in the language grammar, always on our minds. Best bugs.T: bugSomething isn't workingSomething isn't working