Skip to content

Commit

Permalink
Adapt devcontainer to python3.7 (minimum requirement)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagusiak committed Dec 30, 2023
1 parent e1605ae commit 66d47c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Odoo Connect",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.7",

"customizations": {
"vscode": {
Expand Down
4 changes: 2 additions & 2 deletions odoo_connect/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from collections import defaultdict
from contextvars import ContextVar
from datetime import date, datetime, timezone
from typing import Any, Callable, Dict, Optional, Union, cast
from typing import Any, Callable, Dict, Optional, Tuple, Union, cast

from .odoo_rpc import OdooModel

Expand Down Expand Up @@ -113,7 +113,7 @@ def format_binary(v: Union[bytes, str]) -> str:


"""Transform type to tuple(formatter, decoder)"""
_FORMAT_FUNCTIONS: dict[str, tuple[Callable, Callable]] = {
_FORMAT_FUNCTIONS: Dict[str, Tuple[Callable, Callable]] = {
'datetime': (format_datetime, decode_datetime),
'date': (format_date, decode_date),
'binary': (format_binary, decode_binary),
Expand Down

0 comments on commit 66d47c1

Please sign in to comment.