mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 17:20:12 +08:00
add proper deprecation warnings and warnings become error messages in Jedi; also deprecate CallSignature.call_name
This commit is contained in:
1 parent
064f161acc
commit
c7fc13743f
3 files changed
+14
-2
No files matched your search
@@ -193,7 +193,8 @@ def test_signature_is_definition():
|
||||
|
||||
# Now compare all the attributes that a CallSignature must also have.
|
||||
for attr_name in dir(definition):
|
||||
if attr_name.startswith('_') or attr_name == 'defined_names':
|
||||
dont_scan = ['defined_names', 'line_nr', 'start_pos']
|
||||
if attr_name.startswith('_') or attr_name in dont_scan:
|
||||
continue
|
||||
attribute = getattr(definition, attr_name)
|
||||
signature_attribute = getattr(signature, attr_name)
|
||||
|
||||
Reference in new issue
Block a user