-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(python): split into multiple files
The one file was growing too big. Split it into multiple files for easier maintenance.
- Loading branch information
Showing
7 changed files
with
548 additions
and
529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use pyo3::prelude::*; | ||
use pyo3::types::PyDict; | ||
|
||
#[derive(Debug, Clone)] | ||
#[pyclass(frozen, subclass, module = "eppo_client")] | ||
pub struct AssignmentLogger {} | ||
|
||
#[pymethods] | ||
impl AssignmentLogger { | ||
#[new] | ||
fn new() -> AssignmentLogger { | ||
AssignmentLogger {} | ||
} | ||
|
||
#[allow(unused_variables)] | ||
fn log_assignment(slf: Bound<Self>, event: Bound<PyDict>) {} | ||
|
||
#[allow(unused_variables)] | ||
fn log_bandit_action(slf: Bound<Self>, event: Bound<PyDict>) {} | ||
} |
Oops, something went wrong.