Skip to content
Snippets Groups Projects

Update module to latest practices

Merged Vincent Hatakeyama requested to merge topic/15.0/update-to-latest-practices into branch/15.0
9 files
+ 296
28
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 4
4
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014, 2018, 2022 XCG Consulting
# Copyright © 2014, 2018, 2022, 2023 XCG Consulting
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -22,7 +22,7 @@
import os
import os.path
import sys
from typing import Dict, Mapping, Tuple
from collections.abc import Mapping
def main():
@@ -99,8 +99,8 @@
res[tag].extend(info)
def scan_file(filename, tags) -> Tuple[Dict[str, Tuple[str, int, str]], int]:
res = {tag: [] for tag in tags}
def scan_file(filename, tags) -> tuple[dict[str, list[tuple[str, int, str]]], int]:
res: dict[str, list[tuple[str, int, str]]] = {tag: [] for tag in tags}
line_num: int = 0
with open(filename, "r") as f:
for line_num, line in enumerate(f):
Loading