We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
En
class Mano(): def __init__(self) -> None: self.resultado :Resultado = None self.ganador :str = "" self.cartas_tiradas :list[CartaTirada] = [] def to_dict(self) -> Dict[str, any]: return { "resultado": str(self.resultado) if self.resultado is not None else str(Resultado.GANO_ROJO), "ganador": self.ganador, "cartasTiradas": [t.to_dict() for t in self.cartas_tiradas] \ if len(self.cartas_tiradas) else None, } def agregar_tirada(self, c:CartaTirada) -> None: self.cartas_tiradas += [c]
No debería ser if len(self.cartas_tiradas) else [] ? Cómo está en Go?
if len(self.cartas_tiradas) else []
No debería ser self.resultado:Resultado = Resultado.INDETERMINADO ?
self.resultado:Resultado = Resultado.INDETERMINADO
The text was updated successfully, but these errors were encountered:
No branches or pull requests
En
No debería ser
if len(self.cartas_tiradas) else []
? Cómo está en Go?No debería ser
self.resultado:Resultado = Resultado.INDETERMINADO
?The text was updated successfully, but these errors were encountered: