Skip to content

Commit 74a0ab1

Browse files
committed
Specify definite typing based on context, change inharitance to python in-built types
1 parent 32bbac6 commit 74a0ab1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flask_phpbb3/backends/psycopg2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _prepare_custom_fields_statements(self) -> None:
106106
Prepares statements for custom fields
107107
"""
108108
# Setters for custom fields
109-
custom_fields: typing.List[typing.Any] =\
109+
custom_fields: typing.List[str] =\
110110
self._config.get('CUSTOM_USER_FIELDS', [])
111111
for custom_field in custom_fields:
112112
self._functions["set_{0}".format(custom_field)] = (

flask_phpbb3/sessions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
# TODO: Inheriting Dict causes a type-checker error, possibly restructure
20-
class PhpBB3Session(typing.Dict[str, typing.Any], flask.sessions.SessionMixin):
20+
class PhpBB3Session(dict, flask.sessions.SessionMixin):
2121
def __init__(self) -> None:
2222
# Some session related variables
2323
self.modified: bool = False

0 commit comments

Comments
 (0)