You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit contains changes addressing some code reviews:
- The `Violation::message` implementation doesn't mention that the
linter only look for blocking path methods and non-blocking methods are
allowed. I've tweaked the comments and added another code example of
async function using non-blocking os/pathlib path methods.
- The `is_calling_os_path_method` function could be simpler. I've used
the suggested implementation and pulled it out from the function since
it's only one line now.
- The logic to see if an expression is calling a method form the
pathlib.Path module could be simpler if it calls
`PathlibPathChecker::match_initializer` directly.
- The rule function can return early if `maybe_calling_io_operation`
returns false when checking the expressions attribute.
0 commit comments