Skip to content

Commit

Permalink
nome de varialvel melhor
Browse files Browse the repository at this point in the history
  • Loading branch information
alphabraga committed Nov 6, 2024
1 parent 294e412 commit a502603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brutils/ibge/uf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ def convert_text_to_uf(state_name): # type: (str) -> str | None
None
"""

dct = {unidecode(i.value.upper()): i.name for i in UF}
federal_units = {unidecode(i.value.upper()): i.name for i in UF}

return dct.get(unidecode(state_name.upper()), None)
return federal_units.get(unidecode(state_name.upper()), None)

0 comments on commit a502603

Please sign in to comment.