Skip to content

Commit

Permalink
Removed deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
satcfdi committed Jul 10, 2024
1 parent f7b67a8 commit f9007aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions satcfdi/create/cfd/cfdi40.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,6 @@ def __init__(
'Importe': importe,
})

@classmethod # obsolete
def parse(cls, impuesto: str):
parts = impuesto.split("|")
return cls(
impuesto=parts[0],
tipo_factor=parts[1],
tasa_o_cuota=Decimal(parts[2]) if len(parts) > 2 else None,
)


class Retencion(ScalarMap):
"""
Expand Down Expand Up @@ -188,15 +179,6 @@ def __init__(
'Importe': importe,
})

@classmethod # obsolete
def parse(cls, impuesto: str):
parts = impuesto.split("|")
return cls(
impuesto=parts[0],
tipo_factor=parts[1],
tasa_o_cuota=Decimal(parts[2]) if len(parts) > 2 else None,
)


class Impuestos(ScalarMap):
"""
Expand Down
2 changes: 1 addition & 1 deletion satcfdi/pacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Environment(Enum):
class PAC:
RFC = None

def __init__(self, environment):
def __init__(self, environment: Environment):
self.environment = environment

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

0 comments on commit f9007aa

Please sign in to comment.