ruff/crates/ruff_python_semantic/src/analyze
Victor Hugo Gomes 8c68d30c3a
[flake8-use-pathlib] Fix PTH123 false positive when open is passed a file descriptor from a function call (#17705)
## Summary
Includes minor changes to the semantic type inference to help detect the
return type of function call.

Fixes #17691

## Test Plan

Snapshot tests
2025-04-29 16:51:38 -04:00
..
class.rs [pylint] Include name of base class in message for redefined-slots-in-subclass (W0244) (#15559) 2025-01-18 09:50:27 -06:00
function_type.rs Upgrade to Rust 1.86 and bump MSRV to 1.84 (#17171) 2025-04-03 15:59:44 +00:00
imports.rs [pycodestyle] Exempt site.addsitedir(...) calls (E402) (#16251) 2025-02-19 14:31:47 +01:00
logging.rs Include inline instantiations when detecting loggers (#11154) 2024-04-25 21:00:12 -04:00
mod.rs Respect mixed return and raise cases in return-type analysis (#9310) 2023-12-29 16:46:37 +00:00
terminal.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
type_inference.rs Fix PLW1508 false positive for default string created via a mult operation (#14841) 2024-12-08 18:25:47 +00:00
typing.rs [flake8-use-pathlib] Fix PTH123 false positive when open is passed a file descriptor from a function call (#17705) 2025-04-29 16:51:38 -04:00
visibility.rs Avoid no-self-use for attrs-style validators (#13166) 2024-08-30 12:39:05 -04:00