In other words, in a statement like "await = 42" there are now both a warning about
the missing operand and a warning that an await expression cannot be used as
an assignment target. This behavior is consistent with other expressions where
additional parsing errors are not special-cased.
GitOrigin-RevId: 37a68eacc7ec042435c185f9ddd8bc2eea42b40f
Instead, parse them as usual and later report in the dedicated AssignTargetAnnotator
and TypeAnnotationTargetAnnotator. This way, a PsiError element appearing in the PSI
tree of a type declaration statement doesn't cause PyAstTypeDeclarationStatement.getTarget
nullability contract violation.
GitOrigin-RevId: a3e90088cfac7938c398d4d293a72dbd127a2cd0
Otherwise, incomplete stubs break our custom logic for resolving tensorflow
modules re-exported from its _api.v2 subpackage, such as tensorflow.audio,
tensorflow.image, tensorflow.random, etc.
We did the same for Numpy stubs in the past, enabling them back once they
became mature enough.
GitOrigin-RevId: b1e46067406a592761f56b7d296a287e5282b079
Use PyTypingTypeProvider.getAnnotationValue for that, similarly to already
re-used in other places PyTypingTypeProvider.getReturnTypeAnnotation.
Also, I've better separated handling of attributes explicitly annotated with Mapped
and just initialized with a mapped_column call. It will help to remove special
casing for Mapped once generic descriptors are fully supported in type inference
(PY-26184).
GitOrigin-RevId: eaeb66abd26b851507970b112360631704b41db3
With a new workspace model, forced by the platform, old SDK paths are now saved in `//wsl` instead of ``\\wsl`` formats.
`CUSTOM_PYTHON_SDK_HOME_PATH_PATTERN` failed to recognize them.
Check is also added to `getVersionString` not to pollute logs with things like "Can't run `//wsl$/usr/bin..`".
GitOrigin-RevId: d9a5c4cb8972eee841219b52bf596468e52e770a
Use withAlternativeResolveEnabled to prevent causing IndexNotReady exception.
Calling resolveQualifiedName as smartReadAction might be a bad idea
since it will postpone resolving for undefined period of time.
This method calls `foreignResults` which might access index as it does for Ultimate in `PyJavaImportResolver`
GitOrigin-RevId: 3bdbf103c3db4a9d55b5a72c3dfb3d5be9390cc4
Autolayout doesn't obey includes. With plain copy/paste (which is a recommended approach for now) we do not have to list all modules manually in `pluginLayout`.
It is taken from `content`.
We also refactor out PyCharm training, as it depends on plugin that may not exist
GitOrigin-RevId: c225b3565a4b3ea1121a7cdf0b072a63b9448ca4
Fix rerunning failed tests for all Doctest.
Do 'Doctest via pytest' option be available not only if a file/fun/class starts with `test_`.
Merge-request: IJ-MR-131237
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>
GitOrigin-RevId: c1e1fda5f66d1e213f34a057175d8e8986a46647
There was no API for that, so we added `MainPartUiCustomizer` to give `PythonProjectGenerator` ability to customize UI.
As these fields bound automatically to Kotlin DSL UI, no `PyNewProjectSettings` is required.
We also refactored file creation logic to `generateSciFiles` to make it testable.
Test dependencies bring python CORE plugin along with Python plugin, so we can emulate real PyCharm.
Separate module is used because customization module is src by itself and Idea cant compile tests inside of src folder
GitOrigin-RevId: b93b5d0be0ff3acc34c23e56986b8c1edc79d842
Removed computing a number of unique values in a column for pandas tables.
Changed histogram bar logic: always display 20 bars if a table has >20 rows, removed the previous unique value count condition fully.
GitOrigin-RevId: dcda5f4e753a73ce13d1cef2ef8571b02d8304e1