Skip to content

(🐞) blackd: fix issue for mishandling single character input - #3558

Merged
hauntsaninja merged 3 commits into
psf:mainfrom
KotlinIsland:fix/blackd-one-char
Sep 7, 2023
Merged

(🐞) blackd: fix issue for mishandling single character input#3558
hauntsaninja merged 3 commits into
psf:mainfrom
KotlinIsland:fix/blackd-one-char

Conversation

@KotlinIsland

@KotlinIsland KotlinIsland commented Feb 10, 2023

Copy link
Copy Markdown
Contributor

Description

I found this ladybug where if you send one character to blackd it will 500 😳. I created this defect in #3257

Checklist - did you ...

  • [🚀] Add an entry in CHANGES.md if necessary?
  • [🚀] Add / update tests if necessary?
  • [🚀] Add new / update outdated documentation?

❓ Question

Why is the blackd section of CHANGES.md italic?

@github-actions

github-actions Bot commented Feb 10, 2023

Copy link
Copy Markdown
Contributor

diff-shades reports zero changes comparing this PR (3629df9) to main (df50fee).


What is this? | Workflow run | diff-shades documentation

@cooperlees
cooperlees requested a review from zsol February 10, 2023 01:33

@zsol zsol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Changes look good after removing that del

Comment thread src/blackd/__init__.py Outdated

@zsol zsol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh one more thing, could you please add a simple test case for this?

@zsol

zsol commented Feb 13, 2023

Copy link
Copy Markdown
Collaborator

Looks like the test is failing

@ichard26 ichard26 added the S: awaiting response Waiting for futher information from OP label Feb 14, 2023
@KotlinIsland
KotlinIsland force-pushed the fix/blackd-one-char branch from 3f0ecbe to 3a9ca87 Compare May 5, 2023 06:59
@KotlinIsland

Copy link
Copy Markdown
Contributor Author

@zsol Sorry! this must have fell off my radar somehow.

Comment thread CHANGES.md Outdated

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hauntsaninja
hauntsaninja merged commit 8daa64a into psf:main Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S: awaiting response Waiting for futher information from OP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants