Files
semantic-kernel/python/mypy.ini
T
Eduard van Valkenburg 15691eb931 Python: mypy coverage for contents folder (#5904)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Adds mypy typing coverage for the contents folder, includes some small
changes to the types in it.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
2024-04-17 13:15:38 +00:00

49 lines
892 B
INI

[mypy]
python_version = 3.11
plugins = pydantic.mypy
ignore_missing_imports = true
[pydantic-mypy]
init_forbid_extra = false
init_typed = false
warn_required_dynamic_aliases = false
warn_untyped_fields = true
[mypy-semantic_kernel]
no_implicit_reexport = true
[mypy-semantic_kernel.connectors.*]
ignore_errors = true
[mypy-semantic_kernel.core_plugins.*]
ignore_errors = true
[mypy-semantic_kernel.events.*]
ignore_errors = true
[mypy-semantic_kernel.memory.*]
ignore_errors = true
[mypy-semantic_kernel.planners.*]
ignore_errors = true
[mypy-semantic_kernel.prompt_template.*]
ignore_errors = true
[mypy-semantic_kernel.reliability.*]
ignore_errors = true
[mypy-semantic_kernel.services.*]
ignore_errors = true
[mypy-semantic_kernel.template_engine.*]
ignore_errors = true
[mypy-semantic_kernel.text.*]
ignore_errors = true
[mypy-semantic_kernel.utils.*]
ignore_errors = true