Skip to content

Commit cf84ebc

Browse files
committed
Add more dependencies
And ignore more missing imports
1 parent d04e778 commit cf84ebc

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

mypy-baseline.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,8 @@ setup_analytics.py:0: error: Incompatible import of "setup" (imported name has t
88
setup_analytics.py:0: error: Cannot find implementation or library stub for module named "version" [import-not-found]
99
setup.py:0: error: Incompatible import of "setup" (imported name has type "Callable[[DefaultNamedArg(str, 'name'), DefaultNamedArg(str, 'version'), DefaultNamedArg(str, 'description'), DefaultNamedArg(str, 'long_description'), DefaultNamedArg(str, 'author'), DefaultNamedArg(str, 'author_email'), DefaultNamedArg(str, 'maintainer'), DefaultNamedArg(str, 'maintainer_email'), DefaultNamedArg(str, 'url'), DefaultNamedArg(str, 'download_url'), DefaultNamedArg(list[str], 'packages'), DefaultNamedArg(list[str], 'py_modules'), DefaultNamedArg(list[str], 'scripts'), DefaultNamedArg(list[distutils.extension.Extension], 'ext_modules'), DefaultNamedArg(list[str], 'classifiers'), DefaultNamedArg(type[distutils.dist.Distribution], 'distclass'), DefaultNamedArg(str, 'script_name'), DefaultNamedArg(list[str], 'script_args'), DefaultNamedArg(Mapping[str, Any], 'options'), DefaultNamedArg(str, 'license'), DefaultNamedArg(list[str] | str, 'keywords'), DefaultNamedArg(list[str] | str, 'platforms'), DefaultNamedArg(Mapping[str, type[distutils.cmd.Command]], 'cmdclass'), DefaultNamedArg(list[tuple[str, list[str]]], 'data_files'), DefaultNamedArg(Mapping[str, str], 'package_dir'), DefaultNamedArg(list[str], 'obsoletes'), DefaultNamedArg(list[str], 'provides'), DefaultNamedArg(list[str], 'requires'), DefaultNamedArg(list[str], 'command_packages'), DefaultNamedArg(Mapping[str, Mapping[str, tuple[Any, Any]]], 'command_options'), DefaultNamedArg(Mapping[str, list[str]], 'package_data'), DefaultNamedArg(Literal[0, 1] | bool, 'include_package_data'), DefaultNamedArg(list[str], 'libraries'), DefaultNamedArg(list[str], 'headers'), DefaultNamedArg(str, 'ext_package'), DefaultNamedArg(list[str], 'include_dirs'), DefaultNamedArg(str, 'password'), DefaultNamedArg(str, 'fullname'), KwArg(Any)], distutils.dist.Distribution]", local name has type "Callable[[DefaultNamedArg(str, 'name'), DefaultNamedArg(str, 'version'), DefaultNamedArg(str, 'description'), DefaultNamedArg(str, 'long_description'), DefaultNamedArg(str, 'long_description_content_type'), DefaultNamedArg(str, 'author'), DefaultNamedArg(str, 'author_email'), DefaultNamedArg(str, 'maintainer'), DefaultNamedArg(str, 'maintainer_email'), DefaultNamedArg(str, 'url'), DefaultNamedArg(str, 'download_url'), DefaultNamedArg(list[str], 'packages'), DefaultNamedArg(list[str], 'py_modules'), DefaultNamedArg(list[str], 'scripts'), DefaultNamedArg(Sequence[setuptools.extension.Extension], 'ext_modules'), DefaultNamedArg(list[str], 'classifiers'), DefaultNamedArg(type[setuptools.dist.Distribution], 'distclass'), DefaultNamedArg(str, 'script_name'), DefaultNamedArg(list[str], 'script_args'), DefaultNamedArg(Mapping[str, Any], 'options'), DefaultNamedArg(str, 'license'), DefaultNamedArg(list[str] | str, 'keywords'), DefaultNamedArg(list[str] | str, 'platforms'), DefaultNamedArg(Mapping[str, type[setuptools._distutils.cmd.Command]], 'cmdclass'), DefaultNamedArg(list[tuple[str, list[str]]], 'data_files'), DefaultNamedArg(Mapping[str, str], 'package_dir'), DefaultNamedArg(list[str], 'obsoletes'), DefaultNamedArg(list[str], 'provides'), DefaultNamedArg(list[str], 'requires'), DefaultNamedArg(list[str], 'command_packages'), DefaultNamedArg(Mapping[str, Mapping[str, tuple[Any, Any]]], 'command_options'), DefaultNamedArg(Mapping[str, list[str]], 'package_data'), DefaultNamedArg(bool, 'include_package_data'), DefaultNamedArg(list[tuple[str, _BuildInfo]], 'libraries'), DefaultNamedArg(list[str], 'headers'), DefaultNamedArg(str, 'ext_package'), DefaultNamedArg(list[str], 'include_dirs'), DefaultNamedArg(str, 'password'), DefaultNamedArg(str, 'fullname'), KwArg(Any)], setuptools.dist.Distribution]") [assignment]
1010
setup.py:0: error: Cannot find implementation or library stub for module named "version" [import-not-found]
11-
posthog/sentry/django.py:0: error: Function is missing a type annotation [no-untyped-def]
12-
posthog/sentry/django.py:0: error: Function is missing a type annotation [no-untyped-def]
13-
posthog/sentry/django.py:0: error: Function is missing a type annotation [no-untyped-def]
1411
sentry_django_example/manage.py:0: error: Function is missing a return type annotation [no-untyped-def]
1512
sentry_django_example/manage.py:0: note: Use "-> None" if function does not return a value
16-
posthog/exception_integrations/django.py:0: error: Function is missing a type annotation [no-untyped-def]
17-
posthog/exception_integrations/django.py:0: error: Incompatible default for argument "request" (default has type "None", argument has type "WSGIRequest") [assignment]
18-
posthog/exception_integrations/django.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
19-
posthog/exception_integrations/django.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
20-
posthog/exception_integrations/django.py:0: error: Function is missing a return type annotation [no-untyped-def]
21-
posthog/exception_integrations/django.py:0: note: Use "-> None" if function does not return a value
22-
posthog/exception_integrations/django.py:0: error: Function is missing a return type annotation [no-untyped-def]
2313
posthog/utils.py:0: error: Function is missing a type annotation [no-untyped-def]
2414
posthog/utils.py:0: error: Function is missing a type annotation [no-untyped-def]
2515
posthog/utils.py:0: error: Function is missing a type annotation [no-untyped-def]
@@ -35,6 +25,16 @@ posthog/utils.py:0: error: Function is missing a type annotation [no-untyped-de
3525
posthog/utils.py:0: error: Function is missing a type annotation [no-untyped-def]
3626
posthog/utils.py:0: error: Function is missing a type annotation [no-untyped-def]
3727
posthog/utils.py:0: error: Function is missing a type annotation [no-untyped-def]
28+
posthog/sentry/django.py:0: error: Function is missing a type annotation [no-untyped-def]
29+
posthog/sentry/django.py:0: error: Function is missing a type annotation [no-untyped-def]
30+
posthog/sentry/django.py:0: error: Function is missing a type annotation [no-untyped-def]
31+
posthog/exception_integrations/django.py:0: error: Function is missing a type annotation [no-untyped-def]
32+
posthog/exception_integrations/django.py:0: error: Incompatible default for argument "request" (default has type "None", argument has type "WSGIRequest") [assignment]
33+
posthog/exception_integrations/django.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
34+
posthog/exception_integrations/django.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
35+
posthog/exception_integrations/django.py:0: error: Function is missing a return type annotation [no-untyped-def]
36+
posthog/exception_integrations/django.py:0: note: Use "-> None" if function does not return a value
37+
posthog/exception_integrations/django.py:0: error: Function is missing a return type annotation [no-untyped-def]
3838
posthog/request.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
3939
posthog/request.py:0: error: Incompatible types in assignment (expression has type "bytes", variable has type "str") [assignment]
4040
posthog/request.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
@@ -179,10 +179,10 @@ simulator.py:0: note: Use "-> None" if function does not return a value
179179
simulator.py:0: error: Function is missing a return type annotation [no-untyped-def]
180180
simulator.py:0: note: Use "-> None" if function does not return a value
181181
example.py:0: error: Statement is unreachable [unreachable]
182-
sentry_django_example/sentry_django_example/urls.py:0: error: Function is missing a type annotation [no-untyped-def]
183182
posthog/sentry/posthog_integration.py:0: error: Function is missing a return type annotation [no-untyped-def]
184183
posthog/sentry/posthog_integration.py:0: error: Untyped decorator makes function "processor" untyped [misc]
185184
posthog/sentry/posthog_integration.py:0: error: Statement is unreachable [unreachable]
185+
sentry_django_example/sentry_django_example/urls.py:0: error: Function is missing a type annotation [no-untyped-def]
186186
sentry_django_example/sentry_django_example/settings.py:0: error: Need type annotation for "ALLOWED_HOSTS" (hint: "ALLOWED_HOSTS: list[<type>] = ...") [var-annotated]
187187
sentry_django_example/sentry_django_example/settings.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment]
188188
posthog/ai/utils.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def]

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"types-requests",
3838
"types-setuptools",
3939
"types-six",
40+
"types-httpx",
41+
"types-pydantic",
4042
"pre-commit",
4143
],
4244
"test": [

0 commit comments

Comments
 (0)