Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new check: unguarded-typing-import #10176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Jan 11, 2025

Type of Changes

Type
✨ New feature

Description

Continuation of #9964. Needed to check the performance implication which I didn't found time to do. Can be released without that benchmark anyway as it's opinionated (creates churn if a type only import need to be really imported or a real import is only required for type checking). So not a default check and it can be done for style/consistency.

Refs #8111

@Pierre-Sassoulas Pierre-Sassoulas added the Enhancement ✨ Improvement to a component label Jan 11, 2025
@Pierre-Sassoulas Pierre-Sassoulas added this to the 4.0.0 milestone Jan 11, 2025
Copy link
Contributor

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid:
The following messages are now emitted:

  1. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/typing.py#L8
  2. undefined-variable:
    Undefined variable 'nodes'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/filter_statements.py#L29
  3. undefined-variable:
    Undefined variable 'nodes'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/filter_statements.py#L39
  4. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/filter_statements.py#L16
  5. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/helpers.py#L10
  6. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/helpers.py#L22
  7. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/bases.py#L12
  8. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/bases.py#L12
  9. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/bases.py#L13
  10. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/bases.py#L13
  11. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/bases.py#L30
  12. unguarded-typing-import:
    InferenceErrorInfo used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/bases.py#L30
  13. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/bases.py#L30
  14. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/arguments.py#L11
  15. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/context.py#L11
  16. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/context.py#L14
  17. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/context.py#L14
  18. unguarded-typing-import:
    types used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L14
  19. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L16
  20. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L16
  21. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L16
  22. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L17
  23. unguarded-typing-import:
    ClassVar used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L17
  24. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L20
  25. unguarded-typing-import:
    AstroidManagerBrain used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L37
  26. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/manager.py#L37
  27. unguarded-typing-import:
    TransformFn used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/transforms.py#L13
  28. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/objects.py#L16
  29. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/objects.py#L16
  30. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/objects.py#L18
  31. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/objects.py#L18
  32. unguarded-typing-import:
    NoReturn used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/objects.py#L18
  33. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/objects.py#L21
  34. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/objects.py#L31
  35. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/objects.py#L31
  36. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/test_utils.py#L13
  37. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/inference_tip.py#L10
  38. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/inference_tip.py#L11
  39. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/inference_tip.py#L13
  40. unguarded-typing-import:
    InferFn used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/inference_tip.py#L16
  41. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/inference_tip.py#L16
  42. unguarded-typing-import:
    TransformFn used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/inference_tip.py#L16
  43. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/exceptions.py#L9
  44. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/exceptions.py#L9
  45. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/exceptions.py#L10
  46. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/exceptions.py#L12
  47. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/exceptions.py#L12
  48. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/protocols.py#L14
  49. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/protocols.py#L14
  50. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/protocols.py#L14
  51. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/protocols.py#L14
  52. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/protocols.py#L15
  53. unguarded-typing-import:
    ConstFactoryResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/protocols.py#L28
  54. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/protocols.py#L28
  55. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/protocols.py#L28
  56. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/util.py#L9
  57. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/util.py#L9
  58. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/util.py#L9
  59. unguarded-typing-import:
    types used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/modutils.py#L28
  60. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/modutils.py#L30
  61. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/modutils.py#L30
  62. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/modutils.py#L30
  63. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/raw_building.py#L19
  64. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/raw_building.py#L21
  65. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/rebuilder.py#L14
  66. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/rebuilder.py#L14
  67. unguarded-typing-import:
    TokenInfo used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/rebuilder.py#L16
  68. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/rebuilder.py#L17
  69. unguarded-typing-import:
    ParserModule used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/rebuilder.py#L20
  70. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/rebuilder.py#L22
  71. unguarded-typing-import:
    NodeNG used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/rebuilder.py#L23
  72. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/rebuilder.py#L26
  73. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/constraint.py#L10
  74. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/constraint.py#L14
  75. unguarded-typing-import:
    Self used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/constraint.py#L17
  76. unguarded-typing-import:
    ast used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/builder.py#L13
  77. unguarded-typing-import:
    types used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/builder.py#L17
  78. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/builder.py#L19
  79. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/builder.py#L19
  80. unguarded-typing-import:
    TextIOWrapper used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/builder.py#L20
  81. unguarded-typing-import:
    ParserModule used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/builder.py#L24
  82. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/decorators.py#L13
  83. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/decorators.py#L13
  84. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/decorators.py#L19
  85. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_classes.py#L16
  86. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_classes.py#L16
  87. unguarded-typing-import:
    Mapping used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_classes.py#L16
  88. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_classes.py#L18
  89. unguarded-typing-import:
    ClassVar used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_classes.py#L18
  90. unguarded-typing-import:
    Context used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_classes.py#L29
  91. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_classes.py#L50
  92. unguarded-typing-import:
    Self used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_classes.py#L58
  93. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L10
  94. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L10
  95. unguarded-typing-import:
    ClassVar used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L13
  96. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L13
  97. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L13
  98. unguarded-typing-import:
    Position used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L36
  99. unguarded-typing-import:
    InferFn used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L37
  100. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L37
  101. unguarded-typing-import:
    InferenceErrorInfo used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L37
  102. unguarded-typing-import:
    Self used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/node_ng.py#L40
  103. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/_base_nodes.py#L13
  104. unguarded-typing-import:
    ClassVar used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/_base_nodes.py#L15
  105. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/_base_nodes.py#L15
  106. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/as_string.py#L10
  107. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/mixin.py#L15
  108. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/mixin.py#L15
  109. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L17
  110. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L17
  111. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L17
  112. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L17
  113. unguarded-typing-import:
    ClassVar used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L19
  114. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L19
  115. unguarded-typing-import:
    NoReturn used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L19
  116. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L19
  117. unguarded-typing-import:
    Position used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L46
  118. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L47
  119. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L47
  120. unguarded-typing-import:
    InferBinaryOp used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/nodes/scoped_nodes/scoped_nodes.py#L47
  121. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_function_base.py#L14
  122. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_curses.py#L5
  123. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_curses.py#L8
  124. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_type.py#L27
  125. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_type.py#L30
  126. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_argparse.py#L8
  127. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_argparse.py#L11
  128. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_collections.py#L12
  129. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/helpers.py#L7
  130. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/helpers.py#L9
  131. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_pathlib.py#L7
  132. unguarded-typing-import:
    context used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_pathlib.py#L9
  133. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_pathlib.py#L14
  134. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_signal.py#L32
  135. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_dateutil.py#L9
  136. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_utils.py#L10
  137. unguarded-typing-import:
    Attribute used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_utils.py#L11
  138. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_random_mtrand.py#L7
  139. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_random_mtrand.py#L10
  140. undefined-variable:
    Undefined variable 'nodes'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_namedtuple_enum.py#L113
  141. undefined-variable:
    Undefined variable 'nodes'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_namedtuple_enum.py#L119
  142. undefined-variable:
    Undefined variable 'nodes'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_namedtuple_enum.py#L123
  143. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_namedtuple_enum.py#L11
  144. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_namedtuple_enum.py#L13
  145. unguarded-typing-import:
    astroid used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_namedtuple_enum.py#L15
  146. unguarded-typing-import:
    bases used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_namedtuple_enum.py#L16
  147. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_mechanize.py#L5
  148. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_umath.py#L10
  149. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_umath.py#L13
  150. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_fromnumeric.py#L6
  151. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_fromnumeric.py#L9
  152. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_ctypes.py#L15
  153. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_ctypes.py#L18
  154. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_responses.py#L13
  155. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_responses.py#L16
  156. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_nose.py#L14
  157. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_multiarray.py#L9
  158. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_multiarray.py#L19
  159. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_dataclasses.py#L17
  160. unguarded-typing-import:
    context used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_dataclasses.py#L20
  161. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_dataclasses.py#L26
  162. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_random.py#L9
  163. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_random.py#L12
  164. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_numerictypes.py#L8
  165. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_numerictypes.py#L12
  166. unguarded-typing-import:
    context used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_regex.py#L7
  167. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_regex.py#L11
  168. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_builtin_inference.py#L10
  169. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_builtin_inference.py#L10
  170. unguarded-typing-import:
    NoReturn used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_builtin_inference.py#L12
  171. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_builtin_inference.py#L12
  172. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_builtin_inference.py#L16
  173. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_builtin_inference.py#L27
  174. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_builtin_inference.py#L27
  175. unguarded-typing-import:
    ConstFactoryResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_builtin_inference.py#L27
  176. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_typing.py#L11
  177. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_typing.py#L13
  178. unguarded-typing-import:
    context used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_typing.py#L15
  179. unguarded-typing-import:
    NodeNG used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_typing.py#L27
  180. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_ma.py#L7
  181. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_ma.py#L10
  182. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_boto3.py#L8
  183. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_numeric.py#L9
  184. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_numeric.py#L17
  185. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_uuid.py#L6
  186. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_sqlalchemy.py#L5
  187. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_sqlalchemy.py#L8
  188. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_scipy_signal.py#L6
  189. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_scipy_signal.py#L9
  190. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_ssl.py#L7
  191. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_ssl.py#L11
  192. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_multiprocessing.py#L9
  193. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_ndarray.py#L10
  194. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_ndarray.py#L12
  195. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_crypt.py#L5
  196. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_crypt.py#L8
  197. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_threading.py#L5
  198. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_threading.py#L8
  199. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_einsumfunc.py#L10
  200. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_numpy_core_einsumfunc.py#L13
  201. unguarded-typing-import:
    context used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_re.py#L7
  202. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_re.py#L12
  203. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_pkg_resources.py#L5
  204. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_pkg_resources.py#L8
  205. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_attrs.py#L11
  206. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_unittest.py#L6
  207. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_unittest.py#L9
  208. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_subprocess.py#L7
  209. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_subprocess.py#L11
  210. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_pytest.py#L6
  211. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_http.py#L8
  212. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_datetime.py#L5
  213. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_hypothesis.py#L19
  214. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_functools.py#L9
  215. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_functools.py#L13
  216. unguarded-typing-import:
    InferenceContext used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_functools.py#L15
  217. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_functools.py#L19
  218. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_functools.py#L22
  219. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_functools.py#L22
  220. unguarded-typing-import:
    nodes used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_hashlib.py#L5
  221. unguarded-typing-import:
    AstroidManager used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/brain/brain_hashlib.py#L8
  222. undefined-variable:
    Undefined variable 'nodes'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/objectmodel.py#L567
  223. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/objectmodel.py#L30
  224. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/objectmodel.py#L32
  225. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/objectmodel.py#L32
  226. unguarded-typing-import:
    SuccessfulInferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/objectmodel.py#L40
  227. unguarded-typing-import:
    InferenceResult used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/objectmodel.py#L40
  228. unguarded-typing-import:
    _NamespacePath used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/util.py#L10
  229. undefined-variable:
    Undefined variable 'importlib'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L124
  230. undefined-variable:
    Undefined variable 'importlib'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L125
  231. undefined-variable:
    Undefined variable 'importlib'
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L126
  232. unguarded-typing-import:
    pathlib used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L13
  233. unguarded-typing-import:
    types used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L15
  234. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L18
  235. unguarded-typing-import:
    Iterator used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L18
  236. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L18
  237. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/pylint-dev/astroid/blob/b4eadd86066651d2aece162c0042032b62d9d887/astroid/interpreter/_import/spec.py#L21

Effect on home-assistant:
The following messages are now emitted:

  1. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/const.py#L7
  2. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/core_config.py#L6
  3. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/core_config.py#L12
  4. unguarded-typing-import:
    HomeAssistant used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/core_config.py#L59
  5. unguarded-typing-import:
    UndefinedType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/core_config.py#L65
  6. unguarded-typing-import:
    UnitSystem used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/core_config.py#L69
  7. unguarded-typing-import:
    Awaitable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L7
  8. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L7
  9. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L7
  10. unguarded-typing-import:
    Mapping used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L7
  11. unguarded-typing-import:
    ModuleType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L14
  12. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L15
  13. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L15
  14. unguarded-typing-import:
    HomeAssistant used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L24
  15. unguarded-typing-import:
    CALLBACK_TYPE used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L24
  16. unguarded-typing-import:
    Event used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L24
  17. unguarded-typing-import:
    ConfigType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/setup.py#L34
  18. used-before-assignment:
    Using variable 'ConfigEntry' before assignment
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L264
  19. undefined-variable:
    Undefined variable 'DiscoveryKey'
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L1999
  20. unguarded-typing-import:
    Mapping used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L7
  21. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L7
  22. unguarded-typing-import:
    ValuesView used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L7
  23. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L7
  24. unguarded-typing-import:
    Self used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L25
  25. unguarded-typing-import:
    voluptuous used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L30
  26. unguarded-typing-import:
    Platform used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L34
  27. unguarded-typing-import:
    CALLBACK_TYPE used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L40
  28. unguarded-typing-import:
    Event used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L40
  29. unguarded-typing-import:
    DiscoveryKey used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L64
  30. unguarded-typing-import:
    ConfigType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L73
  31. unguarded-typing-import:
    UndefinedType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L73
  32. unguarded-typing-import:
    DiscoveryInfoType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/config_entries.py#L73
  33. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/block_async_io.py#L4
  34. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/block_async_io.py#L16
  35. unguarded-typing-import:
    Hashable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/data_entry_flow.py#L8
  36. unguarded-typing-import:
    Mapping used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/data_entry_flow.py#L8
  37. unguarded-typing-import:
    Container used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/data_entry_flow.py#L8
  38. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/data_entry_flow.py#L8
  39. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/data_entry_flow.py#L8
  40. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/data_entry_flow.py#L15
  41. unguarded-typing-import:
    Required used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/data_entry_flow.py#L15
  42. unguarded-typing-import:
    HomeAssistant used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/data_entry_flow.py#L20
  43. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a050513576000643001e62bb5f6515898/homeassistant/backup_restore.py#L5
  44. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/4cf7a51a0505135760006430...

This comment was truncated because GitHub allows only 65536 characters in a comment.

This comment was generated for commit ea1649f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants