From f3063ac7eb29ec94f14f2d97d0f8a7aa9c8885be Mon Sep 17 00:00:00 2001 From: shemogumbe Date: Mon, 26 Aug 2024 15:09:22 +0300 Subject: [PATCH 1/4] add py.typed file --- msgraph/py.typed | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 msgraph/py.typed diff --git a/msgraph/py.typed b/msgraph/py.typed new file mode 100644 index 00000000000..e69de29bb2d From 6f23ffe4e79a812a7d8eb1f0493f36fdc93b611d Mon Sep 17 00:00:00 2001 From: shemogumbe Date: Mon, 26 Aug 2024 15:11:20 +0300 Subject: [PATCH 2/4] add typing information to pyproject --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 7a2624b4f31..00aca00e451 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,3 +77,6 @@ push = false [tool.bumpver.file_patterns] "pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"'] "msgraph/_version.py" = ["{version}"] + +[tool.poetry.packages] +include = ["msgraph"] \ No newline at end of file From 62da9096398b55be40db2cfc110a263d136c6648 Mon Sep 17 00:00:00 2001 From: shemogumbe Date: Mon, 26 Aug 2024 15:59:34 +0300 Subject: [PATCH 3/4] add mypy to build ditribution process --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 00aca00e451..949d24ba657 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,10 @@ warn_unused_configs = true files = "msgraph" ignore_missing_imports = true +[[tool.mypy.overrides]] +module = "msgraph.generated" +ignore_errors = true + [tool.yapf] based_on_style = "pep8" dedent_closing_brackets = true From 323e4385a62fd84a4feb22cf5ae432ee2623b12a Mon Sep 17 00:00:00 2001 From: shemogumbe Date: Mon, 26 Aug 2024 16:00:10 +0300 Subject: [PATCH 4/4] ignore errors in generated files --- mypy.ini | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 00000000000..057b7231ae7 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,7 @@ +[mypy] +warn_unused_configs = true +files = "msgraph" +ignore_missing_imports = true + +[mypy-msgraph.generated.*] +ignore_errors = True \ No newline at end of file