Skip to content

Commit 3da38c9

Browse files
committed
Updated support for python 3.14
1 parent 8e77156 commit 3da38c9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

satcfdi/accounting/process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Mapping, Sequence
1+
from collections.abc import Mapping, Sequence, Iterator
22
from datetime import date
33
from itertools import groupby
44
from typing import Iterable
@@ -77,7 +77,7 @@ def filter_invoices_iter(
7777
yield r
7878

7979

80-
def filter_payments_iter(invoices: Mapping[UUID, SatCFDI], rfc_emisor=None, rfc_receptor=None, fecha=None, invoice_type=None) -> Sequence[PaymentsDetails]:
80+
def filter_payments_iter(invoices: Mapping[UUID, SatCFDI], rfc_emisor=None, rfc_receptor=None, fecha=None, invoice_type=None) -> Iterator[PaymentsDetails]:
8181
for r in filter_invoices_iter(invoices.values(), rfc_emisor=rfc_emisor, rfc_receptor=rfc_receptor, estatus='1', fecha=None, invoice_type=invoice_type):
8282
match r['TipoDeComprobante']:
8383
case "I":

satcfdi/catalogs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def select(catalog_name, key):
1414
c = conn.cursor()
1515
try:
16-
c.execute(f"SELECT value FROM {catalog_name} WHERE key = ?", (pickle.dumps(key),))
16+
c.execute(f"SELECT value FROM {catalog_name} WHERE key = ?", (pickle.dumps(key, protocol=4),))
1717
if ds := c.fetchone():
1818
return pickle.loads(ds[0])
1919
finally:

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ def get_latest_git_tag():
9090
'cryptography >= 43.0.1',
9191
'pytz >= 2022.5',
9292
'xlsxwriter >= 3.0.0',
93-
'pyOpenSSL >= 22.0.0',
9493
'qrcode >= 7.3.0',
9594
'tabulate >= 0.9.0',
9695
'packaging >= 21.0',

0 commit comments

Comments
 (0)