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
Semyon Proshev
cee7d107fd
PY-17828 Fixed: Wrong signature inspection false positive for __prepare__ method of metaclasses
...
Add __prepare__ to type's skeletons
2016-05-18 21:43:43 +03:00
Semyon Proshev
4528715c54
PY-9924 Fixed: "Expected type" warning when indexing a list with a slice object
...
Update list and tuple skeletons to accept slice as a parameter for __getitem__
2016-05-18 20:23:13 +03:00
Ekaterina Tuzova
cc203e4a79
PY-15272 Numpy: comparison operations on arrays should return array, not bool
...
skeletons for unary operations
2016-05-17 14:27:11 +03:00
Ilya.Kazakevich
1797366780
Repository sync
2016-05-10 16:02:40 +03:00
Semyon Proshev
1d7c5fbe69
PY-19028 Fixed: Byte slices return incorrect type inference
...
Update skeletons to have correct return type for bytes.__getitem__
2016-04-13 21:55:43 +03:00
Ilya.Kazakevich
4141d2664d
skeleton sync
2016-03-11 00:59:51 +03:00
Ilya.Kazakevich
3d724c6af6
Skeleton fix
2016-03-02 22:21:40 +03:00
Ilya.Kazakevich
9ef33e1ab4
Skeletons sync
2016-02-17 00:08:13 +03:00
Andrey Vlasovskikh
cbcceaa532
Sync with GitHub 7418571de67e000d789651dd58177cadae0e32f8 (PY-17437)
2015-12-16 20:18:41 +03:00
Andrey Vlasovskikh
6906e42436
Sync with GitHub bdae36d5e2295cc4a2d3b99faaa1538889cbed86
2015-12-14 16:07:58 +03:00
Ilya.Kazakevich
9e683ea1dc
PY-16926 Canonization is not required for Django 1.6
2015-09-29 22:29:12 +03:00
Ilya.Kazakevich
47ebf5501c
PY-16926 skeleton sync
2015-09-21 23:44:17 +03:00
Ilya.Kazakevich
c3332f16e6
PY-16926 __init__ copied to skeleton to prevent skeleton from overriding actual method
2015-09-21 19:14:20 +03:00
Ilya.Kazakevich
c3d23334f9
Merge remote-tracking branch 'origin/master'
2015-09-16 00:55:24 +03:00
Andrey Vlasovskikh
ea226964e5
Fixed iterating over typing.Iterable, typing.Iterator and others in for loops (PY-16125)
2015-09-15 23:58:59 +03:00
Ilya.Kazakevich
8881a9979f
Sync with git
2015-09-15 21:16:41 +03:00
Andrey Vlasovskikh
b593d17b52
Sync with GitHub
2015-09-15 15:38:37 +03:00
Andrey Vlasovskikh
b2451065c7
Sync with GitHub
2015-09-15 14:32:27 +03:00
Andrey Vlasovskikh
de542bb7a8
Added __coroutine fake type to the builtins binary skeleton for Python 3.5
2015-09-11 20:23:30 +03:00