summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-11-06 15:22:51 +0100
committerGitHub <noreply@github.com>2021-11-06 15:22:51 +0100
commit62f3cfb18eb5e7d27f69f32c7412972d8bfff5fe (patch)
treef2d12f52ef7308eb2d9d2e0889df165ee6e58747 /astroid
parentcdf8a2a9813128db5732a792434b89967c6fb701 (diff)
downloadastroid-git-62f3cfb18eb5e7d27f69f32c7412972d8bfff5fe.tar.gz
Small changes (#1232)
* Based on suggestions from #1218
Diffstat (limited to 'astroid')
-rw-r--r--astroid/decorators.py2
-rw-r--r--astroid/nodes/node_classes.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/astroid/decorators.py b/astroid/decorators.py
index 66d9cb09..734cbd45 100644
--- a/astroid/decorators.py
+++ b/astroid/decorators.py
@@ -197,7 +197,7 @@ def deprecate_default_argument_values(
)
):
warnings.warn(
- f"'{arg}' will be a required attribute for "
+ f"'{arg}' will be a required argument for "
f"'{args[0].__class__.__qualname__}.{func.__name__}' in astroid {astroid_version} "
f"('{arg}' should be of type: '{type_annotation}')",
DeprecationWarning,
diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py
index d94bda39..b8b7c575 100644
--- a/astroid/nodes/node_classes.py
+++ b/astroid/nodes/node_classes.py
@@ -1846,7 +1846,7 @@ class Const(mixins.NoChildrenMixin, NodeNG, Instance):
<Const.bytes l.1 at 0x7f23b2e35a20>]
"""
- _other_fields = ("value",)
+ _other_fields = ("value", "kind")
def __init__(
self,
@@ -4076,6 +4076,7 @@ class FormattedValue(NodeNG):
"""
_astroid_fields = ("value", "format_spec")
+ _other_fields = ("conversion",)
def __init__(
self,