Skip to content
Snippets Groups Projects

:sparkles: make the module installable as a python package

Merged Vincent Hatakeyama requested to merge topic/15.0/installable into branch/15.0
13 files
+ 267
34
Compare changes
  • Side-by-side
  • Inline
Files
13
+ 3
3
@@ -2,7 +2,7 @@
@@ -2,7 +2,7 @@
##############################################################################
##############################################################################
#
#
# OpenERP, Open Source Management Solution
# OpenERP, Open Source Management Solution
# Copyright (C) 2014, 2018, 2022 XCG Consulting
# Copyright © 2014, 2018, 2022 XCG Consulting
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# it under the terms of the GNU Affero General Public License as
@@ -99,8 +99,8 @@ def scan_folder(data_tuple, dirname, names):
@@ -99,8 +99,8 @@ def scan_folder(data_tuple, dirname, names):
res[tag].extend(info)
res[tag].extend(info)
def scan_file(filename, tags) -> tuple[dict[str, tuple[str, int, str]], int]:
def scan_file(filename, tags) -> tuple[dict[str, list[tuple[str, int, str]]], int]:
res = {tag: [] for tag in tags}
res: dict[str, list[tuple[str, int, str]]] = {tag: [] for tag in tags}
line_num: int = 0
line_num: int = 0
with open(filename, "r") as f:
with open(filename, "r") as f:
for line_num, line in enumerate(f):
for line_num, line in enumerate(f):
Loading