Skip to content

Commit

Permalink
add a line
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Jul 14, 2024
1 parent 22999d3 commit 4892b5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/type_narrowing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ patterns include:

In addition to narrowing local variables, type checkers usually also support
narrowing instance attributes and sequence members, such as
``if x.some_attribute is not None`` or ``if x[0] is not None``.
``if x.some_attribute is not None`` or ``if x[0] is not None``, though the exact
conditions for this behavior differ between type checkers.

Consult your type checker's documentation for more information on the type
narrowing constructs it supports.
Expand Down

0 comments on commit 4892b5e

Please sign in to comment.