Skip to content

Commit 39febe7

Browse files
committed
refactor: Add from_py_object to PlayerCount pyclass
1 parent 6e93417 commit 39febe7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use pyo3::prelude::*;
1212
///
1313
/// - Tiles from 2m (二萬) to 8m (八萬) are not used.
1414
///
15-
#[pyclass(eq, eq_int, rename_all = "UPPERCASE")]
15+
#[pyclass(from_py_object, eq, eq_int, rename_all = "UPPERCASE")]
1616
#[derive(Clone, PartialEq)]
1717
pub(crate) enum PlayerCount {
1818
Four,

0 commit comments

Comments
 (0)