Skip to content

Commit f9007aa

Browse files
committed
Removed deprecated code
1 parent f7b67a8 commit f9007aa

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

satcfdi/create/cfd/cfdi40.py

-18
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,6 @@ def __init__(
151151
'Importe': importe,
152152
})
153153

154-
@classmethod # obsolete
155-
def parse(cls, impuesto: str):
156-
parts = impuesto.split("|")
157-
return cls(
158-
impuesto=parts[0],
159-
tipo_factor=parts[1],
160-
tasa_o_cuota=Decimal(parts[2]) if len(parts) > 2 else None,
161-
)
162-
163154

164155
class Retencion(ScalarMap):
165156
"""
@@ -188,15 +179,6 @@ def __init__(
188179
'Importe': importe,
189180
})
190181

191-
@classmethod # obsolete
192-
def parse(cls, impuesto: str):
193-
parts = impuesto.split("|")
194-
return cls(
195-
impuesto=parts[0],
196-
tipo_factor=parts[1],
197-
tasa_o_cuota=Decimal(parts[2]) if len(parts) > 2 else None,
198-
)
199-
200182

201183
class Impuestos(ScalarMap):
202184
"""

satcfdi/pacs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class Environment(Enum):
142142
class PAC:
143143
RFC = None
144144

145-
def __init__(self, environment):
145+
def __init__(self, environment: Environment):
146146
self.environment = environment
147147

148148
def status(self, cfdi: CFDI) -> dict:

0 commit comments

Comments
 (0)