You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From [The Python Language Reference -- The import statement](https://docs.python.org/3/reference/simple_stmts.html#the-import-statement):
2
2
3
-
: \"The [public names]{.title-ref} defined by a module are determined
4
-
by checking the module\'s namespace for a variable named `__all__`;
5
-
if defined, it must be a sequence of strings which are names defined
6
-
or imported by that module.\"
3
+
> The _public names_ defined by a module are determined by checking the module’s namespace for a variable named `__all__`; if defined, it must be a sequence of strings which are names defined or imported by that module.
Copy file name to clipboardExpand all lines: lib/common/pylint_data/messages/possibly-used-before-assignment/details.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,13 @@ if suffix in "dmy":
17
17
handle_date_suffix(suffix)
18
18
```
19
19
20
-
Or, instead of [assert_never()]{.title-ref}, you can call a function
21
-
with a return annotation of [Never]{.title-ref} or
22
-
[NoReturn]{.title-ref}. Unlike in the general case, where by design
20
+
Or, instead of [`assert_never()`](https://typing.python.org/en/latest/guides/unreachable.html#assert-never-and-exhaustiveness-checking), you can call a function
21
+
with a return annotation of [`Never` or `NoReturn`](https://typing.python.org/en/latest/guides/unreachable.html#never-and-noreturn). Unlike in the general case, where (by design)
23
22
pylint ignores type annotations and does its own static analysis, here,
24
23
pylint treats these special annotations like a disable comment.
25
24
26
-
Pylint currently allows repeating the same test like this, even though
27
-
this lets some error cases through, as pylint does not assess the
25
+
Pylint currently allows repeating the same test in this way, even though
26
+
it lets some error cases through, as pylint does not assess the
0 commit comments