Skip to content

fix(generator): render Self as the class name in staticmethods (PEP 673)#8

Merged
monchin merged 3 commits into
masterfrom
fix/staticmethod-should-not-use-self
Jun 14, 2026
Merged

fix(generator): render Self as the class name in staticmethods (PEP 673)#8
monchin merged 3 commits into
masterfrom
fix/staticmethod-should-not-use-self

Conversation

@monchin

@monchin monchin commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Description

As pep673 shows, Self as param type and return type in staticmethods are rejected. But rylai violates it now. So we need to fix this bug.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / chore

Checklist

  • Code follows the project style (cargo fmt, cargo clippy).
  • Self-review done.
  • Comments and docs are in English.
  • Pre-commit checks pass (prek run --all-files or equivalent).
  • CI passes (build, test, lint on Ubuntu, Windows, macOS).

@monchin monchin merged commit 820c0bc into master Jun 14, 2026
0 of 9 checks passed
@monchin monchin deleted the fix/staticmethod-should-not-use-self branch June 14, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant