Commit Graph

76 Commits

Author SHA1 Message Date
Semyon Proshev
8518b710a4 Remove unused skeletons
GitOrigin-RevId: c876926b762dc7439444f8a69ccea21aac35991c
2020-02-26 16:07:53 +00:00
Semyon Proshev
96a915806c Enable pyi-stubs for several modules and packages (PY-20708, PY-28784)
_csv, _curses, _operator, difflib, distutils, hashlib, heapq, operator, pprint, webbrowser
Remove csv tests as they covered python-skeletons (PY-19522)

GitOrigin-RevId: ddeb6e102a908eaf73fe9b679efb11dfd8599cdd
2020-01-31 13:04:03 +00:00
Roman Shevchenko
2cdc5fe648 [python] new config paths (and some typos) in skeletons doc
GitOrigin-RevId: cdf9092e40535de49a2e16e94b131b4f0424c69e
2020-01-21 14:38:56 +00:00
Semyon Proshev
cff3f1f86d Enable pyi-stubs for os (PY-23258, PY-21395, PY-21394, PY-21397, PY-17420, PY-28984, PY-27584)
GitOrigin-RevId: 34ecf07bc68276e62315d01f3c3347f79026ec65
2019-11-20 11:37:02 +00:00
Semyon Proshev
86918338e9 Reapply fec8e404 and 6a55c56f
GitOrigin-RevId: 982946bc2be86d36753a998d9311160bce7b0a1e
2019-10-08 16:33:06 +00:00
Semyon Proshev
26ecc11963 Revert fec8e404 and 6a55c56f in order to fix building dmg
GitOrigin-RevId: 02f6104ca8bbd91cbac617af07161f46cc68159e
2019-09-30 16:34:17 +00:00
Semyon Proshev
5ce281fc20 Reduce using mock sdks, attach necessary files manually instead.
GitOrigin-RevId: fec8e4042fb2aff59741e9e82c857d307169ae16
2019-09-26 13:06:20 +00:00
Semyon Proshev
5571702b32 Enable pathlib, io, itertools, ssl stubs (PY-30450, PY-29863, PY-27972, PY-28155, PY-15949, PY-22845) 2018-06-18 19:02:37 +03:00
Ilya.Kazakevich
4b02e0a4e5 PY-27630: Sync with github: rescue old pytest fixture
According to IDEA-CR-33298
2018-06-14 00:52:43 +03:00
Ilya.Kazakevich
1ab45c0f89 PY-27630: Sync with github 2018-06-06 01:22:52 +03:00
Semyon Proshev
5eb1239228 Remove unused skeletons and move stubs whitelist to syncing script 2018-06-04 19:22:58 +03:00
Semyon Proshev
58fc4c973e Remove user skeletons for math and sqlite3 (PY-13750, PY-26623) 2018-04-17 14:36:46 +03:00
Semyon Proshev
dce45edc74 Enable subprocess stubs (PY-19898, PY-24760) 2018-02-19 20:52:40 +03:00
Semyon Proshev
32d1620185 Enable re stubs (PY-24440, PY-22308)
The most important part of this commit is that local module has more priority against typeshed one.
2017-12-18 19:34:05 +03:00
Semyon Proshev
e207dcd063 Enable shutil stubs (PY-23887, PY-22759, PY-21827) 2017-12-18 19:34:04 +03:00
Semyon Proshev
18f29e0174 Enable functools stubs (PY-26167) 2017-12-18 19:34:04 +03:00
Ilya.Kazakevich
670ce0d028 PY-27241: use django skeletons instead of java code 2017-12-04 03:33:57 +03:00
Ilya.Kazakevich
db1f9ce026 PY-27241: use django skeletons instead of java code 2017-12-04 03:16:35 +03:00
Ekaterina Tuzova
caca2bf506 PY-22398 False positive about missing argument for numpy.maximum.accumulate()
added skeleton for numpy.core.ufunc and numpy.core.dtype
2017-09-15 11:53:42 +03:00
Semyon Proshev
e3f371128b PY-21692 Fixed: Return type of sum(List[Decimal]) is 'Any' (should be 'Decimal')
Add skeletons for builtin sum function
2016-11-29 20:32:25 +03:00
Semyon Proshev
60edb30580 Update skeletons for max function 2016-11-29 20:32:25 +03:00
Semyon Proshev
c60419eb7e Update skeletons for min function to fit updated type processing of positional and keyword arguments 2016-11-29 20:32:25 +03:00
Semyon Proshev
45e473cac8 PY-19723 Fixed: Type hinting of arbitrary argument lists and default argument values
Update PyDocStringTypeProvider to correctly handle `:type args: T1` and `:type kwargs: T2`, and wrap their types to `Tuple[T1, ...]` and `Dict[str, T2]`.
2016-11-25 19:02:42 +03:00
Semyon Proshev
e87b053584 PY-21350 Fixed: Wrong return type for input() in Python 3
Add skeletons for raw_input() in Python 2 and input() for both Pythons.
Update PyUserSkeletonsTypeProvider to wrap callable's return type even if it's null.
2016-11-17 20:09:32 +03:00
Semyon Proshev
8fba7e8988 Inherit os._wrap_close skeleton from io.TextIOWrapper[unicode] because it redirects all calls to wrapped value 2016-11-15 15:54:43 +03:00
Semyon Proshev
9bab826071 PY-21040 Fixed: False positive: os.popen(...).close() doesn't return anything
Update os.popen skeleton to return class which has return value in close()
2016-11-15 15:54:43 +03:00
Semyon Proshev
c58302f45c PY-20757 Fixed: Incorrect warning about expected attribute
Make min skeletons generic.
2016-11-15 15:40:10 +03:00
Semyon Proshev
a77aed6035 PY-20769 Fixed: Support PEP 519: File system path protocol
Update skeletons to accept PathLike objects in pathlib classes
2016-11-15 15:39:06 +03:00
Semyon Proshev
f1a0dc0ab6 PY-20769 Fixed: Support PEP 519: File system path protocol
Update skeletons to accept PathLike objects in open and os.path functions
2016-11-15 15:39:05 +03:00
Semyon Proshev
15e5d938d5 PY-21083 Fixed: Inspection of float.fromhex expecting incorrect arguments
Fix skeleton for float.fromhex
2016-11-15 15:37:19 +03:00
Mikhail Golubev
44744a74bd PY-21244 Fix type annotations for the built-in function "map" 2016-11-08 12:00:46 +03:00
Semyon Proshev
db475bb30d PY-21083 Fixed: Inspection of float.fromhex expecting incorrect arguments
Add skeleton for float.fromhex
2016-10-28 20:11:35 +03:00
Semyon Proshev
6eefe3f8b7 Fix __builtin__.py by adding 'self' to signature of dict.values() 2016-10-27 14:07:40 +03:00
Andrey Vlasovskikh
eed34a10df PY-21133 Removed non-existent __coroutinte.__iter__ 2016-10-26 18:55:51 +03:00
Semyon Proshev
5f32b5ac0d Fix skeleton for csv.register_dialect in Py2 so 'dialect' parameter type is resolved and PyTypeCheckerInspectionTest is able to match args with params 2016-10-13 21:54:36 +03:00
Semyon Proshev
565e1307e7 PY-20071 Fixed: Nonexistent logger methods should be mark as unresolved
PY-19716 Fixed: logger.exception() without arguments doesn't show a warning

Skeleton for logging.getLogger was accidentally pushed to primary python-skeletons repo and then was synced with current repo.
So there is no skeleton in affected files but tests are based on it.

At first logger.getLogger returned union of Logger and RootLogger.
RootLogger just inherits Logger and doesn't introduce any additional functionality.
But there was a problem with PyArgumentListInspection which doesn't work in case of many callees (e.g. logger.exception).
So skeleton was updated to return only logger from logging.getLogger.
2016-10-13 21:08:52 +03:00
Semyon Proshev
980c26e7a2 PY-19522 Fixed: "Unexpected Argument" when registering CSV dialect
Add skeleton for csv.register_dialect in Py2
2016-10-12 21:50:29 +03:00
Semyon Proshev
ca7ab723c1 PY-8473 Fixed: Recognize copy() and deepcopy() methods in code insight
Add skeletons for copy.copy and copy.deepcopy
2016-10-12 21:20:49 +03:00
Semyon Proshev
dc9c608cda Defaultdict skeleton update: T is unknown when the constructor is invoked so it won't be possible to check this type variable later. 2016-10-12 20:42:02 +03:00
Semyon Proshev
6c6e4a29ef PY-20797 Fixed: Type checking can be improved: now not showing warning when trying to call on value of defaultdict
Add defaultdict to skeletons
2016-10-11 20:12:14 +03:00
Semyon Proshev
d74244f6ac PY-20770 Fixed: Support Python 3.6 asynchronous generators and comprehensions
Introduce fake __asyncgenerator type for async generator objects described in PEP 525.
Update PyFunctionImpl.createCoroutineType to convert __generator to __asyncgenerator.
Update PyTargetExpressionImpl.getIterationType to infer type of elements which are getting from async generator
Highlight non-empty return inside async generators as error
2016-09-30 18:04:58 +03:00
Semyon Proshev
ef22dc0793 PY-20460 Fixed: typechecker false positive with slice
Update parameter type in str.__getitem__, bytes.__getitem__ (Py3) and unicode.__getitem__ (Py2) skeletons to receive slices
2016-09-27 13:30:52 +03:00
Semyon Proshev
2d88d2cf91 Add frozenset.__iter__, tuple.__iter__ and file.__iter__ (Py2 only) skeletons 2016-09-09 16:02:53 +03:00
Semyon Proshev
e79b624ec3 PY-20063 Fixed: Code introspection / autocomplete does not resolve types in Sets (and perhaps other collection types) when used with single-character iteration expressions
Add skeletons for set.__iter__
2016-09-09 16:02:53 +03:00
Ilya.Kazakevich
50741a0c07 Skeletons sync 2016-09-03 00:12:52 +03:00
Ilya.Kazakevich
f14fe99c76 PY-20464: Sync with skeletons 2016-09-03 00:12:28 +03:00
Semyon Proshev
3eadc8bc13 PY-19085 Fixed: Unresolved attribute reference 'fullmatch' for class '__Regex'
Add re.fullmatch and __Regex.fullmatch to skeletons
2016-07-15 19:16:07 +03:00
Mikhail Golubev
42c225eb7a PY-19884 Snapshot of python-skeletons with set/frozenset @ ca4a0c4 2016-06-21 20:20:22 +03:00
Semyon Proshev
ca3d199fb0 PY-19796 Fixed: Incorrect parameter type hint for ord() function parameter
Update skeleton of ord function to accept bytes in Py3
2016-06-20 19:18:09 +03:00
Andrey Vlasovskikh
be19f16bdc Snapshot of python-skeletons @ bfb0ce7 2016-05-24 18:37:06 +03:00