Skip to content

Commit

Permalink
Added mysql types
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert09 committed Jul 23, 2024
1 parent cfddab8 commit 3c59f10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 0 additions & 4 deletions mypy-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ posthog/models/plugin.py:0: error: Name "timezone.datetime" is not defined [nam
posthog/models/plugin.py:0: error: Name "timezone.datetime" is not defined [name-defined]
posthog/models/person/person.py:0: error: "_T" has no attribute "_add_distinct_ids" [attr-defined]
posthog/models/person/person.py:0: error: Incompatible types in assignment (expression has type "list[Never]", variable has type "_QuerySet[PersonDistinctId, str]") [assignment]
posthog/warehouse/models/external_data_schema.py:0: error: Library stubs not installed for "pymysql" [import-untyped]
posthog/warehouse/models/external_data_schema.py:0: note: Hint: "python3 -m pip install types-PyMySQL"
posthog/warehouse/models/external_data_schema.py:0: note: (or run "mypy --install-types" to install all missing stub packages)
posthog/warehouse/models/external_data_schema.py:0: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
posthog/hogql/database/database.py:0: error: "FieldOrTable" has no attribute "fields" [attr-defined]
posthog/warehouse/models/datawarehouse_saved_query.py:0: error: Argument 1 to "create_hogql_database" has incompatible type "int | None"; expected "int" [arg-type]
posthog/warehouse/models/datawarehouse_saved_query.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery | SelectUnionQuery") [assignment]
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ packaging==23.1
black~=23.9.1
boto3-stubs[s3]
types-markdown==3.3.9
types-PyMySQL==1.1.0.20240524
types-PyYAML==6.0.1
types-freezegun==1.1.10
types-paramiko==3.4.0.20240423
Expand Down
9 changes: 6 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ black==23.9.1
# -r requirements-dev.in
# datamodel-code-generator
# inline-snapshot
boto3-stubs[s3]==1.34.84
boto3-stubs==1.34.84
# via -r requirements-dev.in
botocore-stubs==1.34.84
# via boto3-stubs
Expand All @@ -62,7 +62,7 @@ click==8.1.7
# inline-snapshot
colorama==0.4.4
# via pytest-watch
coverage[toml]==5.5
coverage==5.5
# via pytest-cov
cryptography==39.0.2
# via
Expand Down Expand Up @@ -98,6 +98,7 @@ executing==2.0.1
faker==17.5.0
# via -r requirements-dev.in
fakeredis==2.23.3
# via -r requirements-dev.in
flaky==3.7.0
# via -r requirements-dev.in
freezegun==1.2.2
Expand Down Expand Up @@ -197,7 +198,7 @@ pycparser==2.20
# via
# -c requirements.txt
# cffi
pydantic[email]==2.5.3
pydantic==2.5.3
# via
# -c requirements.txt
# datamodel-code-generator
Expand Down Expand Up @@ -313,6 +314,8 @@ types-markdown==3.3.9
# via -r requirements-dev.in
types-paramiko==3.4.0.20240423
# via -r requirements-dev.in
types-pymysql==1.1.0.20240524
# via -r requirements-dev.in
types-python-dateutil==2.8.3
# via -r requirements-dev.in
types-pytz==2023.3.0.0
Expand Down

0 comments on commit 3c59f10

Please sign in to comment.