InSync
07cf8852a3
[pylint] Also report when the object isn't a literal (PLE1310) ( #15985 )
...
## Summary
Follow-up to #15984 .
Previously, `PLE1310` would only report when the object is a literal:
```python
'a'.strip('//') # error
foo = ''
foo.strip('//') # no error
```
After this change, objects whose type can be inferred to be either `str`
or `bytes` will also be reported in preview.
## Test Plan
`cargo nextest run` and `cargo insta test`.
2025-02-10 09:31:27 +01:00
..
2025-02-05 14:01:58 -05:00
2025-02-07 10:59:40 +01:00
2025-02-08 19:42:14 +00:00
2025-01-23 10:43:14 +01:00
2025-02-06 15:04:27 +00:00
2025-02-01 01:01:58 +00:00
2025-02-03 12:25:57 +01:00
2025-02-09 19:33:03 -05:00
2025-01-26 22:25:29 -05:00
2025-02-02 18:16:07 +00:00
2024-07-03 07:36:46 -05:00
2025-02-07 10:59:40 +01:00
2025-02-07 10:59:40 +01:00
2025-01-03 08:50:13 -06:00
2025-01-11 09:51:58 +01:00
2025-01-17 09:41:06 +01:00
2024-07-18 09:24:58 -07:00
2025-02-10 09:31:27 +01:00
2025-02-07 10:59:40 +01:00
2025-02-03 12:25:57 +01:00
2025-02-07 17:17:20 -06:00
2024-11-15 19:31:15 +01:00
2025-02-04 08:41:06 -05:00
2025-02-06 16:00:50 +01:00
2024-10-28 07:53:41 +00:00
2025-02-04 08:41:06 -05:00
2025-02-04 18:14:28 +00:00
2024-11-15 19:31:15 +01:00
2025-02-10 09:31:27 +01:00
2025-01-04 12:23:53 +01:00
2025-02-04 14:01:53 +01:00
2024-11-15 19:31:15 +01:00
2025-02-10 04:57:14 +00:00
2024-12-11 10:30:41 +00:00
2025-01-16 15:18:12 +01:00
2025-02-06 13:24:45 -06:00
2025-02-10 04:57:14 +00:00