Commit Graph

  • cd6113c2c3 Move with_generics and define_generics to ClassMixin Dave Halter 2020-06-08 00:11:45 +02:00
  • c9a21adc5f Make sure py__get__ is applied properly for Django metaclasses Dave Halter 2020-06-07 15:01:12 +02:00
  • 9adcf3d233 Make sure meta class filters can distinguish between classes and instances Dave Halter 2020-06-07 14:54:26 +02:00
  • 34cc8e9ad7 Properly handle __get__ in properties/partials Dave Halter 2020-06-07 14:18:45 +02:00
  • cf923ec6de Update MANIFEST.in yuan 2020-06-07 11:48:21 +08:00
  • 105c097fea Merge branch 'django-custom-object-manager' of https://github.com/PeterJCLaw/jedi into django Dave Halter 2020-06-06 01:24:24 +02:00
  • 574b790296 Make it possible to use inheritance on generics without always specifying type vars, see also discussion in #1593 Dave Halter 2020-06-06 01:23:14 +02:00
  • 3870253b56 Make sure that scopes can only be exact values, see #1590 Dave Halter 2020-06-05 23:04:39 +02:00
  • 21a380f7cb Merge pull request #1590 from muffinmad/references-scope Dave Halter 2020-06-05 19:21:34 +02:00
  • 404661f361 Replace Script by timedelta in the test muffinmad 2020-06-05 17:44:59 +03:00
  • 1e58f9a15c Test both named params are found muffinmad 2020-06-05 15:28:22 +03:00
  • 24236be3ce Fix a small issue with doctest completions, fixes #1585 Dave Halter 2020-06-05 13:34:47 +02:00
  • 8705149619 Use pytest.mark.parametrize muffinmad 2020-06-03 17:20:23 +03:00
  • 782dedd439 Get references in the current module only muffinmad 2020-06-03 16:35:28 +03:00
  • f9bbccbc13 Pycodestyle configuration section moved to setup.cfg muffinmad 2020-06-03 15:24:37 +03:00
  • cecdaa98ae Exclude more Linux constants in test_import Michał Górny 2020-06-02 15:21:04 +02:00
  • 9980f760b1 Merge pull request #1601 from yuan-xy/patch_3 Dave Halter 2020-05-31 11:14:58 +02:00
  • 5946a5cd8c Refactoring about checking \r\n (#1603) yuan 2020-05-31 17:13:30 +08:00
  • 32687474db add test case to fix code example in doc yuan_xy 2020-05-29 08:17:39 +08:00
  • 98a8b6c76c fix typo (#1602) yuan 2020-05-30 18:04:15 +08:00
  • ca08365a81 fix typo yuan 2020-05-28 17:03:00 +08:00
  • 8239328e42 Merge pull request #1599 from isidentical/py38-plus-setuppy Dave Halter 2020-05-28 21:18:51 +02:00
  • b9131c6070 Upgrade setup.py's version parsing for 3.8+ Batuhan Taskaya 2020-05-28 15:26:48 +03:00
  • 1c342d36e5 Don't goto while building found_names for the current file muffinmad 2020-05-24 22:58:04 +03:00
  • 2d672d2f28 Merge pull request #1595 from PeterJCLaw/operator-not-in Dave Halter 2020-05-23 14:48:40 +02:00
  • c62cbd6654 Explicitly handle a not in b operator comparison Peter Law 2020-05-23 12:47:30 +01:00
  • c36904d983 Support custom managers in Django models Peter Law 2020-05-22 12:33:03 +01:00
  • 669b70b2cd Validate instance methods on Django models Peter Law 2020-05-18 22:37:23 +01:00
  • 7459d67fee Test local references in some other cases muffinmad 2020-05-22 13:24:39 +03:00
  • 741097827d Get references in the current module only muffinmad 2020-05-21 17:37:25 +03:00
  • 4ceca54138 Specify max-line-length for pycodestyle muffinmad 2020-05-21 17:31:44 +03:00
  • 860d5e8889 Import FileNotFoundError from jedi._compatibility Christopher Cave-Ayland 2020-05-20 21:55:48 +01:00
  • 64d131060c Merge pull request #1586 from PeterJCLaw/django-more-fields Dave Halter 2020-05-19 00:39:27 +02:00
  • b7cdec427e Support OneToOneFields Peter Law 2020-05-18 22:19:20 +01:00
  • df66b35444 Support UUIDFields Peter Law 2020-05-18 22:11:31 +01:00
  • cd9f2f31ea Support URLFields Peter Law 2020-05-18 21:59:15 +01:00
  • b54d7433c7 Support GenericIPAddressFields Peter Law 2020-05-18 22:10:09 +01:00
  • 855fb5a936 Fix potential AttributeError in get_defintion_start_position/get_defintion_end_position, see #1584 Dave Halter 2020-05-18 19:20:53 +02:00
  • 8fdf16b316 Fix an error of get_definition_end_pos, see #1584 Dave Halter 2020-05-18 01:44:27 +02:00
  • fa6194c0a9 Refactor test_definition_start_end_position to use parametrize Dave Halter 2020-05-18 01:41:07 +02:00
  • 2d17b81313 definition_end_position -> get_definition_end_position, same for start, see #1584 Dave Halter 2020-05-18 01:17:52 +02:00
  • cb1730f628 Merge pull request #1584 from pappasam/get_definition_position Dave Halter 2020-05-18 01:14:00 +02:00
  • d848047012 Add unit tests for definition_[start,end]_position Sam Roeca 2020-05-17 11:48:28 -04:00
  • 716beae455 Add BaseName.definition_[start,end]_position Sam Roeca 2020-05-16 15:08:36 -04:00
  • d16355fcf2 Fix tests in Python 2 Dave Halter 2020-05-16 17:47:33 +02:00
  • cd3d40a3b8 Fix a small issue Dave Halter 2020-05-16 15:42:15 +02:00
  • b3fc10a6e4 Magic methods fixes for reverse methods Dave Halter 2020-05-16 15:39:48 +02:00
  • 09dbbc6361 lists and tuples should not be added Dave Halter 2020-05-16 15:10:47 +02:00
  • f5ad561c51 Use __truediv__ instead of __div__ Dave Halter 2020-05-16 14:57:57 +02:00
  • 0db50b521d Fix an issue with Tuple generics Dave Halter 2020-05-16 14:55:59 +02:00
  • 9942a3d44c A few class renames Dave Halter 2020-05-16 14:35:15 +02:00
  • 47637c147c Better debugging Dave Halter 2020-05-16 14:31:31 +02:00
  • 2fb072532a Skip another non-important Python 2 test that fails on Windows Dave Halter 2020-05-16 01:25:15 +02:00
  • 70aa7fc917 Fix a namespace issue when getting references Dave Halter 2020-05-16 00:54:34 +02:00
  • 384b2ad014 Fix an about dict completions Dave Halter 2020-05-16 00:46:46 +02:00
  • f2975f9a05 Fix a None issue Dave Halter 2020-05-16 00:27:14 +02:00
  • 41c146a6f3 Implement magic method return values, fixes #1577 Dave Halter 2020-05-15 19:09:44 +02:00
  • be594f1498 Remove an unused cache method Dave Halter 2020-05-15 00:29:36 +02:00
  • 99eba4e0eb Undefined api types should not return a random value Dave Halter 2020-05-15 00:26:14 +02:00
  • 43806f8668 Add support for generic optional parameters (#1559) Peter Law 2020-05-15 18:56:03 +01:00
  • d4aa583e16 Fix inline case where a name was removed without the code being used, fixes #1582 Dave Halter 2020-05-14 23:08:31 +02:00
  • 381fbeda6a Make the diff nicer if there is no ending newline, fixes #1581 Dave Halter 2020-05-14 00:18:16 +02:00
  • 3104443212 Merge pull request #1579 from muffinmad/pseudotreenameclass Dave Halter 2020-05-13 18:59:05 +02:00
  • 16e2b86bcf Fix test muffinmad 2020-05-13 01:18:47 +03:00
  • 0caee73975 Merge pull request #1572 from davidhalter/classvar Dave Halter 2020-05-12 23:56:03 +02:00
  • 7f25e28d89 Fix tuple issue in 3.6 Dave Halter 2020-05-12 23:33:06 +02:00
  • ce8473ee63 Add author's name to AUTHORS.txt muffinmad 2020-05-12 23:34:28 +03:00
  • 7ccee7d8fc Add test _PseudoTreeNameClass.type == 'class' muffinmad 2020-05-12 23:28:46 +03:00
  • 7cd89cff6e Return 'class' as BaseName.type of _PseudoTreeNameClass (fix #1578) muffinmad 2020-05-12 23:14:32 +03:00
  • e1c0d2c501 Reduce noise in signatures of compiled params (#1564) Vlad Serebrennikov 2020-05-10 14:33:36 +03:00
  • be7a1346ec Fix #1573 again; a tree_node can be None Dave Halter 2020-05-10 13:29:58 +02:00
  • 6dbc5e783e Fix argument clinic unpacking, remove dynamic bullshit Dave Halter 2020-05-10 13:27:20 +02:00
  • 1115cbd94d This fixes two issues with the caching on Windows: Max Mäusezahl 2020-05-10 11:16:12 +02:00
  • bf4ec2282f Fix getattr completions on very weird cases, fixes #1573 Dave Halter 2020-05-10 11:37:58 +02:00
  • e6e43413ff Any -> AnyClass Dave Halter 2020-05-10 03:17:52 +02:00
  • e9a0c01af8 TypedDictBase -> TypedDictClass Dave Halter 2020-05-10 03:17:07 +02:00
  • d0270b5e59 DefineGenericBase -> DefineGenericBaseClass Dave Halter 2020-05-10 03:07:40 +02:00
  • b57654aed3 Rename some classes to make it clearer that they are classes Dave Halter 2020-05-10 03:04:52 +02:00
  • 78ad06612e Remove an unused import Dave Halter 2020-05-10 03:00:47 +02:00
  • 434866558a Instances should not need get_generics Dave Halter 2020-05-10 02:58:15 +02:00
  • 42963a0e03 By having get_annotated_class_object for Tuple/Callable, some details are not necessary anymore Dave Halter 2020-05-10 02:52:42 +02:00
  • c2d1da09cb Make sure that Tuple/Callable instances have the correct py__class__ Dave Halter 2020-05-10 01:05:55 +02:00
  • f362932ec5 Return a more correct py__class__ for typing base objects Dave Halter 2020-05-09 16:28:05 +02:00
  • 3b48c76e4a Make a function private Dave Halter 2020-05-09 00:49:37 +02:00
  • d56f607f35 Reinstate an if that was deleted by mistake Dave Halter 2020-05-09 00:13:18 +02:00
  • 39a2cd8aa2 Fix a potential issue with tuples Dave Halter 2020-05-08 18:07:15 +02:00
  • 14ca8e6499 Add a comment Dave Halter 2020-05-08 18:00:35 +02:00
  • 2a227dcc7a Remove is_class_value from infer_type_vars Dave Halter 2020-05-08 17:49:02 +02:00
  • 12090ce74b Fix tests Dave Halter 2020-05-08 15:18:23 +02:00
  • 25973554e2 Remove the common folder and move it to a common file Dave Halter 2020-05-08 13:23:56 +02:00
  • 138c22afe9 Remove common.value Dave Halter 2020-05-08 13:18:01 +02:00
  • d19535340c Move infer_type_vars to base_value Dave Halter 2020-05-08 13:13:26 +02:00
  • 5fcbed721d Merge pull request #1554 from PeterJCLaw/fix-nested-tuple-argument Dave Halter 2020-05-08 12:49:44 +02:00
  • 812776b9ce Add .venv to _IGNORE_FOLDERS Sam Roeca 2020-05-05 14:10:22 -04:00
  • d606ea6759 Correct a test Dave Halter 2020-04-27 09:59:25 +02:00
  • c314e1c36e Speed up signature fetching for MixedName, see discussion in #1422 Dave Halter 2020-04-27 01:53:42 +02:00
  • 8c7a883abd Test that the actual signature of a function is used in Interpreter Dave Halter 2020-04-27 01:47:06 +02:00
  • 55facaaf3d Switch back to using execute_annotation Peter Law 2020-04-26 14:30:18 +01:00
  • 17ca3a620f Merge branch 'master' into fix-nested-tuple-argument Peter Law 2020-04-26 13:56:14 +01:00
  • 9836a1b347 Very small refactoring Dave Halter 2020-04-26 12:47:40 +02:00