Andrey Vokin
95529a9325
PY-79510 remove unused index
...
GitOrigin-RevId: 8f7e5a8db920d9fa68fc1cbc840c97b68668b728
2025-07-04 13:49:25 +00:00
Daniil Kalinin
48036c381d
[python] Fix Concatenate mistakenly reported as illegal first param of Callable
...
GitOrigin-RevId: fd84c011703e45f751d98a89ee2d43c8fd7a2498
2025-07-04 13:16:24 +00:00
Mikhail Golubev
064419d1e9
[python] Make overlooked PyElementVisitor methods for statements delegate to visitPyStatement
...
GitOrigin-RevId: f6853d0dfc5ddcc7b40bfccead0ad779328fc751
2025-07-04 13:15:14 +00:00
Mikhail Golubev
730ae2b287
[python] Add docs for PyWithContextExitInstruction
...
GitOrigin-RevId: 1b25d2f9e38da43e77375064feb1e4ac9c61f5b0
2025-07-04 13:15:14 +00:00
Mikhail Golubev
3b7e2aef4d
[python] Make PyTypeShed.isInThirdPartyLibraries and PyTypeShed.isInStandardLibrary strict
...
GitOrigin-RevId: 51dbe8ecfdd968af5281b8367f7ebacaf102bdc3
2025-07-04 13:15:14 +00:00
Marcus Mews
50ddce24c7
PY-79622: @typing.overload does not work correctly with decorator application syntax
...
- check all overloads of each decorator to retrieve type annotations
GitOrigin-RevId: 916e4f796e3295c413f93e3adebf64f4692c8c11
2025-07-04 07:17:36 +00:00
Aleksandr.Govenko
4f0bda5a61
PY-81482 assert True in try triggers "This code is unreachable" after finally
...
GitOrigin-RevId: 9e5ea2546169cda70f2aaf810fa2f27d13cb102a
2025-07-03 11:31:16 +00:00
Aleksandr.Govenko
74b2965fd7
PY-81936 Code unreachable under sys.version_info guards is not highlighted
...
GitOrigin-RevId: ea1c276b5648f0ca4237b770179b27d6c5ee1048
2025-07-03 11:31:16 +00:00
Aleksandr.Govenko
fa1f564206
PY-81947 if x is not None check for a value of type Any | None makes the guarded code unreachable
...
GitOrigin-RevId: 4f374c34595414f20612062922b9e88c93f9ffc1
2025-07-03 11:31:16 +00:00
Daniil Kalinin
7dd60d0dff
PY-75679 Do not narrow down the Self type in generic classes
...
GitOrigin-RevId: 57358fbf64732c0a2913ee9aa64e4bc1d300a3c3
2025-07-02 21:32:58 +00:00
Tagir Valeev
02d1884fcc
Remove redundant null-checks after type nullability inference was introduced
...
GitOrigin-RevId: bac43dfe363cf0bf2c1ccb1e8e90f8ef55ca89cd
2025-07-02 17:35:14 +00:00
Aleksandr.Govenko
1b7409fc17
PY-76896 Conformance test failure: classes_override.py
...
GitOrigin-RevId: 6603d072bd324493af12130ebec1ef0004873255
2025-07-02 16:29:39 +00:00
evgeny.bovykin
abe6184e8a
PY-79816 Introduce PyType#getMemberTypes and use it to infer __hash__ type of dataclasses
...
`getMemberTypes` should be used for members which have no PSI which can be used to resolve to. For example, `__init__` method in dataclasses are sometimes not present in the source code. Yet its parameters are always useful for the code analysis. In this case, `getMemberTypes` should be used.
GitOrigin-RevId: 2455ed05099842fc50e1fa2a196c4952b6444795
2025-07-02 08:33:56 +00:00
Morgan Bartholomew
f083128e86
[python] PY-82265 edge cases for GTD
...
GitOrigin-RevId: 6de5053ef51534f6efe8a1ca4cf428b8d8c44cfa
2025-07-01 23:39:04 +00:00
Morgan Bartholomew
0ead2f713d
[python] add some nullability annotations to resolve functions
...
GitOrigin-RevId: e2f9fb1a427aed1910a7aacac3de6d39b8ebb953
2025-07-01 23:39:04 +00:00
Petr
4dc8c380e3
PY-81606 Incorrect type inferred for a function with positional only parameters
...
GitOrigin-RevId: 159e5302d77141bcd7539e967e3014df42fc1147
2025-07-01 04:52:05 +00:00
Petr
fa98ce5640
PY-81471 Sync PyCodeStyleSettings
...
GitOrigin-RevId: dd0263865288cc86dc2df0912edfd15ea2fbe3df
2025-06-30 15:46:23 +00:00
Petr
7135789b0f
PY-81288 Incorrect type inferred for a function with positional only parameters
...
GitOrigin-RevId: 3bfea7064073b32743d58bbf5030769d1565a61e
2025-06-28 13:01:14 +00:00
Petr
2972e77c6b
[python] Rm deprecated method (PyTypedDictType)
...
GitOrigin-RevId: 2d3c136851a6fc2b2fc3da6cbe910553772e7ce1
2025-06-26 22:18:51 +00:00
Vitaly Legchilkin
e255e8d0d0
[python] i18n strings (remove hardcoded literals)
...
GitOrigin-RevId: 14ad16249d0b030f4d3b88fc6b86dc7146dc3c72
2025-06-25 12:51:22 +00:00
Aleksandr Sorotskii
75462f009e
support for () in version spec; proper equals op
...
GitOrigin-RevId: b6dcc1204e225369df009a59ece08f5797138b0f
2025-06-24 13:51:09 +00:00
Vladimir Fedorov
2c15058004
[ml-api] JBAI-14600 unify ML API version
...
* Switched to the project-level dependency everywhere
* Introduced a new module intellij.platform.ml.logs to separate ml-api library usages from intellij.platform.ml and intellij.platform.ml.impl modules
* The following models has been adapted to the latest ML API version: python imports ranking, fuzzy resolve, completion trigger model, jetenry inline prompt detection, jetenry fleet code classification
Merge-request: IJ-MR-166415
Merged-by: Vladimir Fedorov <890readrid@gmail.com >
GitOrigin-RevId: 9056efba5a5397a700daabb453ee1477cfaabdf3
2025-06-23 16:32:35 +00:00
Andrey Vokin
8b387672f2
PY-79510 PyCharm: Code entry points for AI playground
...
Add an index to the names imported from Python. This will allow you to check if the project has AI libraries in its dependencies.
GitOrigin-RevId: d16f3163a602194ef0f3254402dd4061ff8d2f7f
2025-06-23 15:07:44 +00:00
Petr
b5850be763
[python] Rm unused method Scope.hasNestedScopes
...
GitOrigin-RevId: dd4603860332c9112638cafbfd1e8bf62295d4b6
2025-06-23 14:59:09 +00:00
Petr
ef9d45b50c
[python] Code deduplication (PyResolveUtil)
...
GitOrigin-RevId: 9aaf55cda9cfe57682b51a3745791804c4b9dc8f
2025-06-23 14:59:09 +00:00
Petr
bf15a014dc
PY-82115 Fix the inferred type of target expression inside a global or nonlocal statement
...
GitOrigin-RevId: e04360a589a56de26e835cd59655efa7fa7c232e
2025-06-23 14:59:09 +00:00
Petr
7f51ea7313
PY-82115 Incorrect resolve of nonlocal and global variables
...
GitOrigin-RevId: c51517699fe512c22687282ed8d46ffe56e22ac1
2025-06-23 14:59:09 +00:00
Marcus Mews
f35ff1b00a
PY-34368: False warning "This decorator will not receive a callable it may expect" when @classmethod is not the last applied
...
- improve inspection to respect unaffected decorators wrt. classmethod/staticmethod
- improve inspection message
- add tests
GitOrigin-RevId: 0eb431ae1aa2c40fa9056f7032936bb05bf8c32b
2025-06-21 11:11:50 +00:00
Morgan Bartholomew
d3da4fe291
[python] PY-81789 filter unhelpful declarations for GTD
...
GitOrigin-RevId: 5374463ddac801e264d36f9173d0247e6b238920
2025-06-20 17:23:30 +00:00
Aleksandr Sorotskii
ca209c662c
cleanup
...
GitOrigin-RevId: 30dbff5da2c157f526a8095b9d7065559eda468b
2025-06-19 17:54:48 +00:00
Aleksandr.Govenko
3303b96bd1
PY-81030 Stuck when editing code, high CPU usage
...
GitOrigin-RevId: 0c4f6c91655503524722d59b363f60e1d289898c
2025-06-19 15:27:46 +00:00
Marcus Mews
cb63214bc9
marcus.mews/PY-55691
...
PY-55691: `Expected type 'Type[AttrsInstance]'` warning passing `attrs` class to `attrs.fields()`
- add member __attrs_attrs__ to classes decorated with attrs.define or similar
Merge-request: IJ-MR-165647
Merged-by: Marcus Mews <marcus.mews@jetbrains.com >
GitOrigin-RevId: 979f894e595d903c55f33c8bd4c5c3d06cb2fe6d
2025-06-18 21:08:01 +00:00
Petr
685695021f
PY-81471 Move lang.foldingBuilder to common
...
GitOrigin-RevId: 3c4f9cc773d14492e9fbf026f0472a908c9262ec
2025-06-18 20:02:26 +00:00
Andrey Vokin
dc83319152
PY-81269 Extremely High RAM Usage
...
GitOrigin-RevId: bb534d62931c176d2395e2cceb0afabc57464669
2025-06-18 13:17:14 +00:00
Mikhail Golubev
25fd9257a0
[python] Inline PyBuiltinCache.getExceptionsForSdk
...
GitOrigin-RevId: 8b8fb4585ad380675d4b1c7450a2ca923fc67c50
2025-06-18 11:23:25 +00:00
Mikhail Golubev
eb6065ed19
[python] Simplify NoneType resolution in PyBuiltinCache.getNoneType
...
Return types.NoneType if it's available and _typeshed.NoneType otherwise.
GitOrigin-RevId: 253bce59377fb8b2aff3912c9a8db9b219865c52
2025-06-18 11:23:24 +00:00
Mikhail Golubev
f108875d9f
[python] Don't return from a call argument in PyBuiltinCache.CachedFile.resolveTopLevel
...
People tend to find such code style wildly confusing.
GitOrigin-RevId: cede3fc5669a790d89bb0a205b3deb15a5ce16ef
2025-06-18 11:23:24 +00:00
Mikhail Golubev
82d4fdb741
[python] Don't resolve a builtin name twice in PyBuiltinCache.getObjectType
...
GitOrigin-RevId: fc30cc2a666d5721dc27f35f9ac8394b704fc4a7
2025-06-18 11:23:24 +00:00
Mikhail Golubev
d4f19f8848
[python] Use interfaces instead of Impl classes in PyBuiltinCache
...
GitOrigin-RevId: 19dba89ad25f938de1aeb5952d54da622e659f55
2025-06-18 11:23:24 +00:00
Nikita Ashihmin
05e32e764d
PY-19974 Packages: Add conda envinroment.yml support, refactor sync methods
...
Signed-off-by: Nikita.Ashihmin <nikita.ashihmin@jetbrains.com >
Merge-request: IJ-MR-164824
Merged-by: Nikita Ashihmin <Nikita.Ashihmin@jetbrains.com >
GitOrigin-RevId: 85cbf7b873742ded72029af1f4ff3e34af9bae22
2025-06-17 00:18:33 +00:00
Vladimir Krivosheev
b935234c91
IJ-MR-162467 don't export intellij.platform.projectModel
...
GitOrigin-RevId: 11c0bf5ca0f3a6d892658a2b149d85cace9aa2b8
2025-06-14 13:00:48 +00:00
Petr
31c71642fd
PY-81471 Move PyLineWrapPositionStrategy to python.syntax.core
...
GitOrigin-RevId: 998a62f09ee1e2fed512c5ae8c8cfed8808c947f
2025-06-13 20:21:12 +00:00
Petr
e7a8716848
PY-81471 Move PythonCommenter to python.syntax.core
...
GitOrigin-RevId: a4d6c426f104f67c0bf95b15b321c101590c5142
2025-06-13 20:21:12 +00:00
Petr
e33aae05fc
PY-81471 Move PyStatementMover to python.syntax
...
GitOrigin-RevId: c9cb03c1bb97720c392ea482765790674f27b647
2025-06-13 20:21:11 +00:00
Aleksandr.Govenko
b0ca1ef976
[python] PY-81674 Highlight all unreachable code gray
...
GitOrigin-RevId: 5a8dba3a51b7e9d415deb5401213ad3b79ddd3c5
2025-06-13 16:56:16 +00:00
Petr
53a7528022
[python] Use Any in place of unresolved object (PyTypeHintsInspection.kt)
...
GitOrigin-RevId: 701463ca2d95e6483f9ca640dcf39e173e47c0c3
2025-06-11 14:26:43 +00:00
Morgan Bartholomew
04f2c5187a
[python] PY-81658 don't suggest deprecated stubs
...
GitOrigin-RevId: 97e1a447e8ebf2747b771fdb23785755c35144aa
2025-06-10 16:22:37 +00:00
Ilya.Kazakevich
80f248d842
Python: Move helpers locator out of PSI module
...
GitOrigin-RevId: 55fb4b41c56fdd41b6d9523cd7a148c002ffb8be
2025-06-07 21:59:42 +00:00
Ilya.Kazakevich
7c6aee1172
Python: findPathInHelpers must not be nullable.
...
GitOrigin-RevId: c7be8fc5d86ccc0de45f60734990124c18b33734
2025-06-06 23:05:47 +00:00
Ilya.Kazakevich
19c3576535
Python: findPathInHelpers must not be nullable.
...
Unless user breaks installation, helpers are always there
GitOrigin-RevId: 080832690128e72128eef661f0a887ce4a85798d
2025-06-06 17:14:10 +00:00