GeistHaus
log in · sign up

Devlog 1: Contributing to Ruff, Profiling, Python Types Conformance Tests

glyphack.com

Last week I wanted to start contributing to rust. I was working on Adding uninitialized attribute access check to Ruff. I did it and learned a lot about how to track attributes in Python code. A gist of it would be, you need to go over the class, in each function when something is assigned to a name you need to check if that name is self or cls. And you do this by checking if it matches the first argument of that function. Then if the function is a class method it’s cls and otherwise self.

0 pages link to this URL

No pages have linked to this URL yet.