Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix ruff formatting in builtin_ascii.py snippet
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
  • Loading branch information
Copilot and youknowone committed Mar 17, 2026
commit 6803cee423c0902fff6abd42e3651d445f47df66
4 changes: 4 additions & 0 deletions extra_tests/snippets/builtin_ascii.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@
assert ascii(chr(0x9999)) == "'\\u9999'"
assert ascii(chr(0x0A)) == "'\\n'"


class MyStr(str):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[auto-format] reported by reviewdog 🐶

Suggested change
class MyStr(str):
class MyStr(str):

pass


class Foo:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[auto-format] reported by reviewdog 🐶

Suggested change
class Foo:
class Foo:

def __repr__(self):
return MyStr("hello")


class Bar:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[auto-format] reported by reviewdog 🐶

Suggested change
class Bar:
class Bar:

def __repr__(self):
return MyStr("héllo")


assert type(ascii(Foo())) is MyStr
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[auto-format] reported by reviewdog 🐶

Suggested change
assert type(ascii(Foo())) is MyStr
assert type(ascii(Foo())) is MyStr

assert ascii(Foo()) == MyStr("hello")
assert type(ascii(Bar())) is str
Expand Down
Loading