Semyon Proshev
feed56de02
Sync with typeshed @ 10d3c6c325090172d5dc1cb99c5ce8a9319d88b2 (PY-41509, PY-41510, PY-44819)
...
Enable stubs for contextlib, cprofile, fractions, keyword, pipes, pkgutil, typed_ast, zoneinfo.
Skipped several `__init__` to `__new__` changes in builtin classes.
GitOrigin-RevId: dad913f67c69396d0db2d5e550254535713ea2f3
2020-10-19 21:15:33 +00:00
Mikhail Golubev
5e814f0e78
PY-23968 PyFromImportStatementImpl.addInternal supports adding new names "before" and at the beginning
...
GitOrigin-RevId: 838658cf749f62f0da1e9656021a800515073926
2020-03-06 14:07:46 +00:00
Mikhail Golubev
e5a732aec9
PY-23968 Respect the order of names in from imports when adding new names in them
...
GitOrigin-RevId: 403a24096e72eecde5b0731b2e752cf9b86df3e2
2020-03-06 14:07:46 +00:00
Mikhail Golubev
0fbb674a91
PY-34818 Suggest auto importing symbols referenced in f-strings
...
GitOrigin-RevId: 433bb6a1247620e994b103d0a5348b23ed642813
2020-03-05 18:33:22 +00:00
Mikhail Khorkov
ba25d399f9
PY-1421 Update test data for all 'unused import' inspection report message
...
GitOrigin-RevId: 1f0cbb85d9b062265f2b93e2746c11f8e72b0bff
2019-11-12 10:10:18 +00:00
aleksei.kniazev
a4c6f8d8bd
IDEA-CR-45845: new ordering rules for completion and autoimport quickfix (PY-20976)
...
items defined in the project > items from the standard library > items from other libraries
doesn't start or end with _ > starts with _ > starts with _ > starts and ends with __
items with no leading _ in import path > with leading _ in import path
function/variable/class > module/directory
less items in the import path > more items in the import path
GitOrigin-RevId: 7fba600668d7f7eab4dbd5d3891811cfe2501b89
2019-08-01 12:04:14 +03:00
Mikhail Golubev
97977bf50d
PY-20100 Update existing "from" imports only when it's allowed by code style
...
Interestingly, this new code style option affects the text of the auto import
quickfix since the latter reflects whether a symbols will be imported anew or
by extending some existing import.
2018-10-03 17:13:23 +03:00
Mikhail Golubev
58a25d2c34
PY-24450 Suggest importing modules for unresolved decorators without arguments
...
Because it can be just an incomplete qualified name of the needed callable.
2018-08-15 12:44:23 +03:00
Mikhail Golubev
64b2788857
PY-28752 Show full origin when suggesting symbols from existing "from" imports
2018-03-01 19:07:03 +03:00
Mikhail Golubev
5cdbe09648
PY-16176 Existing imports are suggested first in auto import quickfix
2018-03-01 19:07:03 +03:00
Mikhail Golubev
14463e6bde
PY-16176 Always explicitly suggest all possible variants of imports
...
even when some existing imports offer the name in question, as
quite often multiple stdlib and third-party modules define
the same name.
I've also restored functionality PyAddImportQuickFixTest after recent
changes in it that precluded checks of individual import candidates.
2018-03-01 19:07:03 +03:00
Mikhail Golubev
89eb73790a
PY-25234 More efficient way to check that a user skeleton belongs to the stdlib
...
Also, I added a test on that scenario using the skeleton for "alembic"
as an example.
2017-12-11 20:19:51 +03:00
Mikhail Golubev
0d89738e05
PY-25234 Fix ordering for imports resolved into binary skeletons of stdlib
...
Previously, we used the priority of the binary skeletons directory
itself, thus placing them in a wrong THIRD_PARTY group.
2017-10-23 18:58:30 +03:00
Mikhail Golubev
532e18e4d9
Add "Py" prefix to AddImportQuickFixTest and several other quick fix tests
...
otherwise it's easy to overlook it especially considering that there is
also (confusingly) PyAddImportTest
2017-03-21 18:10:12 +03:00