File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ def nameof(
233
233
234
234
>>> x = lambda: None
235
235
>>> x.y = 1
236
- >>> nameof(x.y, full=True ) # 'x.y'
236
+ >>> nameof(x.y, vars_only=False ) # 'x.y'
237
237
238
238
Note:
239
239
This function works with the environments where source code is
@@ -252,7 +252,7 @@ def nameof(
252
252
Note that the calls from standard libraries are ignored.
253
253
Also note that the wrapper has to have signature as this one.
254
254
vars_only: Whether only allow variables/attributes as arguments or
255
- any expressions. If `True `, then the sources of the arguments
255
+ any expressions. If `False `, then the sources of the arguments
256
256
will be returned.
257
257
258
258
Returns:
@@ -261,7 +261,7 @@ def nameof(
261
261
If multiple variables are passed, return a tuple of their
262
262
names/sources.
263
263
If the argument is an attribute (e.g. `a.b`) and `vars_only` is
264
- `False `, only `"b"` will returned. Set `vars_only` to `True ` to
264
+ `True `, only `"b"` will returned. Set `vars_only` to `False ` to
265
265
get `"a.b"`.
266
266
267
267
Raises:
You can’t perform that action at this time.
0 commit comments