Skip to content

Add new check: unguarded-typing-import #10176

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

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

This comment has been minimized.

@Pierre-Sassoulas Pierre-Sassoulas force-pushed the used-only-for-typechecking branch from ea1649f to 6e90c48 Compare April 3, 2025 07:19
Copy link
Contributor

github-actions bot commented Apr 3, 2025

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

Effect on astroid:
The following messages are now emitted:

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

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

  1. undefined-variable:
    Undefined variable 'HomeKitDiscoveredIntegration'
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/loader.py#L588
  2. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/loader.py#L10
  3. unguarded-typing-import:
    Literal used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/loader.py#L21
  4. unguarded-typing-import:
    voluptuous used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/loader.py#L29
  5. unguarded-typing-import:
    Platform used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/loader.py#L32
  6. unguarded-typing-import:
    HomeAssistant used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/loader.py#L33
  7. unguarded-typing-import:
    UndefinedType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/loader.py#L43
  8. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core_config.py#L6
  9. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core_config.py#L12
  10. unguarded-typing-import:
    HomeAssistant used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core_config.py#L59
  11. unguarded-typing-import:
    UndefinedType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core_config.py#L65
  12. unguarded-typing-import:
    UnitSystem used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core_config.py#L69
  13. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/requirements.py#L6
  14. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/requirements.py#L10
  15. unguarded-typing-import:
    HomeAssistant used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/requirements.py#L14
  16. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/exceptions.py#L5
  17. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/exceptions.py#L5
  18. unguarded-typing-import:
    Sequence used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/exceptions.py#L5
  19. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/exceptions.py#L7
  20. unguarded-typing-import:
    EventType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/exceptions.py#L9
  21. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/block_async_io.py#L4
  22. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/block_async_io.py#L16
  23. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L11
  24. unguarded-typing-import:
    Collection used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L11
  25. unguarded-typing-import:
    ValuesView used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L11
  26. unguarded-typing-import:
    KeysView used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L11
  27. unguarded-typing-import:
    concurrent.futures used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L20
  28. unguarded-typing-import:
    datetime used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L22
  29. unguarded-typing-import:
    Final used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L31
  30. unguarded-typing-import:
    Self used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L31
  31. unguarded-typing-import:
    NotRequired used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L31
  32. unguarded-typing-import:
    VolSchemaType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L94
  33. unguarded-typing-import:
    EventType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/core.py#L103
  34. undefined-variable:
    Undefined variable 'Integration'
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/bootstrap.py#L769
  35. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/bootstrap.py#L19
  36. unguarded-typing-import:
    ConfigType used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/bootstrap.py#L95
  37. unguarded-typing-import:
    Integration used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/bootstrap.py#L96
  38. unguarded-typing-import:
    Hashable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/data_entry_flow.py#L8
  39. unguarded-typing-import:
    Mapping used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/data_entry_flow.py#L8
  40. unguarded-typing-import:
    Container used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/data_entry_flow.py#L8
  41. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/data_entry_flow.py#L8
  42. unguarded-typing-import:
    Iterable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/data_entry_flow.py#L8
  43. unguarded-typing-import:
    Any used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/data_entry_flow.py#L15
  44. unguarded-typing-import:
    Required used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/data_entry_flow.py#L15
  45. unguarded-typing-import:
    HomeAssistant used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/data_entry_flow.py#L19
  46. unguarded-typing-import:
    Awaitable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/setup.py#L7
  47. unguarded-typing-import:
    Callable used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/setup.py#L7
  48. unguarded-typing-import:
    Generator used only for typechecking but imported outside of a typechecking block
    https://github.com/home-assistant/core/blob/33d895bc7d4b3116af83c42750c060929b2d0509/homeassistant/setup.py#L7
  49. unguarded-typing-import:
    *Mapping used only for ...

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

This comment was generated for commit 6e90c48

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