Dave Halter
85ec94cf65
Fix pytest issues, fixes #1699
2020-12-26 03:32:17 +01:00
Dave Halter
8740ff2691
Ignore the mypy cache for searching folders
2020-12-25 17:35:28 +01:00
Dave Halter
4b5b2e791b
Prepare release of 0.18.0
2020-12-25 11:06:15 +01:00
Dave Halter
b89f9445c2
Merge pull request #1684 from davidhalter/relative-import
...
Relative imports should work even if they are not within the project
2020-12-22 23:18:46 +01:00
Dave Halter
ce6ddb91de
Merge pull request #1711 from davidhalter/deprecations
...
Remove Deprecations
2020-12-21 22:49:09 +01:00
Dave Halter
f9cec89038
Merge branch 'master' into deprecations
2020-12-12 12:17:25 +01:00
Dave Halter
bc4f6ed9dd
Merge branch 'master' into relative-import
2020-12-12 12:15:13 +01:00
Leo Ryu
fd435a7bbb
Check if string_names is None before returning string_names ( #1708 )
...
* Check if string is None before using string_names
* Add test asserting None string_names returns an empty list
* Remove whitespace to pass flake8
* Add name to authors.txt
Co-authored-by: Leo Ryu <leo@episci.com >
2020-12-12 12:13:31 +01:00
Dave Halter
ce0ed4b8ae
Improve a comment
2020-12-10 16:57:09 +01:00
Dave Halter
42a759a7ae
Merge pull request #1706 from ColdGrub1384/master
...
Catch 'PermissionError' for unreadable directories
2020-12-07 22:34:03 +01:00
Dave Halter
34792c0077
Merge pull request #1707 from Carreau/fix-1702
...
Add tests for #1702 , for a rare numpydoc syntax.
2020-12-07 15:07:53 +01:00
Matthias Bussonnier
4740178bdf
Not all nodes have children, protect agaisnt it.
2020-12-06 18:11:49 -08:00
Adrian Labbé
12a2d10595
Catch 'OSError' instead of just 'PermissionError'
2020-12-06 15:25:46 -03:00
Yoni Weill
ccdf7eddf4
add Completion.get_completion_prefix_length
...
fixes #1687
2020-12-06 17:21:33 +02:00
Adrian Labbé
83d4ec9e84
Catch 'PermissionError' for unreadable directories
2020-12-05 21:00:28 -03:00
Dave Halter
a03a093e2c
change the create_stub_module stuff a bit
2020-10-24 10:41:59 +02:00
Dave Halter
6094e7b39a
Fix get_line_code for stubs
2020-10-24 10:12:32 +02:00
Dave Halter
6eabde1519
Fix annotations on self attributes, fixes #1681
2020-10-23 23:26:07 +02:00
Dave Halter
a4f45993f8
Simplify some things, so something like #1678 does not happen again
2020-10-23 21:38:39 +02:00
Dave Halter
49e35497ae
Stop subclassing CompiledName, potentially fixes #1667
2020-10-23 21:28:08 +02:00
Dave Halter
bf310c780c
Fix a recursion on imports, fixes #1677
2020-10-23 21:04:36 +02:00
Dave Halter
e671a0cb6d
Fix an error with enums, fixes #1675
2020-10-23 20:25:00 +02:00
Dave Halter
a5a36a049c
Fix an infer issue on literals after brackets, fixes #1657
2020-10-23 19:09:23 +02:00
Dave Halter
bf56103428
Update jedi/inference/imports.py
...
Co-authored-by: Peter Law <PeterJCLaw@gmail.com >
2020-10-21 22:32:24 +02:00
Dave Halter
78e87d0ab8
Relative imports should work even if they are not within the project
2020-10-20 01:00:22 +02:00
Dave Halter
cb55b45d47
Catch an OSError on Windows
2020-09-19 22:13:45 +02:00
Dave Halter
e3fedb52f1
Remove an unused import
2020-09-19 21:40:01 +02:00
Mvdk
ff439039da
make contextualized_node an optional kwarg
...
In all other py__iter__ definitions that I found, this argument is optional. It also often seems to not be passed around. I'm not sure why it was deemed mandatory here despite not being used.
2020-09-14 10:27:19 -06:00
Dave Halter
e617c9d344
Formatting
2020-08-05 23:55:46 +02:00
Dave Halter
58ef6cd36b
if_stmt test clauses should be resolved at the start of the if_stmt
2020-08-05 23:55:46 +02:00
Dave Halter
abf63d73d3
Basic implementation support for namedexpr, fixes #1647
2020-08-05 23:55:46 +02:00
Dave Halter
76c0c373da
Merge pull request #1642 from PeterJCLaw/mypy
...
Add an initial mypy config
2020-08-05 01:09:49 +02:00
Dave Halter
f12ed2088a
Use pathlib for file ios, because the new parso is out
2020-08-05 00:52:50 +02:00
Dave Halter
94bf83c826
Revert Django changes in a9e2cd5a74
...
This was probably an accident in #1646
2020-08-05 00:18:24 +02:00
Dave Halter
10aa21f970
Merge branch 'master' of github.com:davidhalter/jedi
2020-08-04 18:29:26 +02:00
Matthias Bussonnier
a9e2cd5a74
Reformat and move imports to top level.
2020-08-03 08:24:24 -07:00
Dave Halter
2f7d0ec42c
Project attributes are now read accessible
2020-08-01 18:26:26 +02:00
Matthias Bussonnier
20be4f02c8
Turn print into warning to simplify silencing them.
2020-07-27 11:28:05 -07:00
Peter Law
6364dd1511
Add explicit Optional annotation
...
This isn't a mypy issue -- there's no way it could otherwise know
that this `None` value is in fact an optional callable.
2020-07-26 14:43:41 +01:00
Peter Law
b892c07841
Merge branch 'master' into mypy
2020-07-26 12:25:19 +01:00
Peter Law
cefc363f64
Configure mypy and flake8 for our re-export files
...
This removes the need to use __all__ in these files, while also
allowing us to have strictness elsewhere in the codebase.
2020-07-26 12:20:08 +01:00
Peter Law
45c90efb5c
Remove a couple of unused imports
2020-07-26 12:17:54 +01:00
Peter Law
0571e12617
These attributes aren't optional
...
They just don't yet have a value.
2020-07-26 12:11:34 +01:00
Peter Law
86e0e16625
Drop redundant rtype comment
...
This is better expressed as an annotation.
2020-07-26 12:10:59 +01:00
Peter Law
b3edda30c4
Explain why we 'type: ignore' these properties
2020-07-26 12:09:04 +01:00
Dave Halter
9d1587a41d
Don't need to inherit from object anymore
2020-07-26 00:11:57 +02:00
Peter Law
38f853cf86
Add ignores for stdlib imports only recently added
2020-07-24 21:06:30 +01:00
Peter Law
a2d9fbcd42
Ignore this runtime-only import
...
I've queried this in https://github.com/python/typeshed/issues/4360 ,
though I suspect the answer is going to be to have an ignore comment
like this.
2020-07-24 20:25:55 +01:00
Peter Law
6315709fea
Inherit from base class to placate mypy
2020-07-24 20:25:55 +01:00
Peter Law
48e5aa777b
Annotate potentially missing import
2020-07-24 20:25:55 +01:00