pytorch/torch/profiler
Yuanyuan Chen a60d9e1f6d Fix flake8 B028 warnings (#166224)
This PR fixes flake8 B028 warning by specifying stacklevel=2 in `warnings.warn`. The advantage is that users can know more contextual information about PyTorch warnings.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166224
Approved by: https://github.com/ezyang
2025-10-26 06:18:55 +00:00
..
__init__.py [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
_memory_profiler.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_pattern_matcher.py [BE][Ez]: Autotype torch/profiler with ruff ANN (#157923) 2025-07-09 22:07:50 +00:00
_utils.py Add pyrefly suppressions 2/n (#164513) 2025-10-03 02:46:13 +00:00
itt.py [BE][Ez]: Autotype torch/profiler with ruff ANN (#157923) 2025-07-09 22:07:50 +00:00
profiler.py Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00
python_tracer.py