Merge pull request #1 from osuAkatsuki/tsunyoku-patch-1

fix: redo imports
This commit is contained in:
James
2022-12-27 22:49:07 +00:00
committed by GitHub
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
use pyo3::{exceptions::PyTypeError, pyclass, pymethods, types::PyDict, PyResult}; use pyo3::{exceptions::PyTypeError, pyclass, pymethods, types::PyDict, PyResult};
use rosu_pp::Beatmap; use akatsuki_pp::Beatmap;
use crate::error::{ErrorExt, KwargsError, ParseError}; use crate::error::{ErrorExt, KwargsError, ParseError};
+1 -1
View File
@@ -4,7 +4,7 @@ use pyo3::{
types::PyDict, types::PyDict,
PyResult, PyResult,
}; };
use rosu_pp::{AnyPP, AnyStars, DifficultyAttributes, GameMode}; use akatsuki_pp::{AnyPP, AnyStars, DifficultyAttributes, GameMode};
use crate::{ use crate::{
beatmap::PyBeatmap, diff_attrs::PyDifficultyAttributes, error::KwargsError, beatmap::PyBeatmap, diff_attrs::PyDifficultyAttributes, error::KwargsError,
+1 -1
View File
@@ -1,7 +1,7 @@
use std::fmt::{Debug, Display, Formatter, Result as FmtResult}; use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
use pyo3::{pyclass, pymethods}; use pyo3::{pyclass, pymethods};
use rosu_pp::{ use akatsuki_pp::{
catch::CatchDifficultyAttributes, mania::ManiaDifficultyAttributes, catch::CatchDifficultyAttributes, mania::ManiaDifficultyAttributes,
osu::OsuDifficultyAttributes, taiko::TaikoDifficultyAttributes, DifficultyAttributes, osu::OsuDifficultyAttributes, taiko::TaikoDifficultyAttributes, DifficultyAttributes,
}; };
+2 -2
View File
@@ -2,8 +2,8 @@ use std::{error::Error, fmt::Write};
use pyo3::{create_exception, exceptions::PyException}; use pyo3::{create_exception, exceptions::PyException};
create_exception!(rosu_pp_py, KwargsError, PyException); create_exception!(akatsuki_pp_py, KwargsError, PyException);
create_exception!(rosu_pp_py, ParseError, PyException); create_exception!(akatsuki_pp_py, ParseError, PyException);
pub trait ErrorExt { pub trait ErrorExt {
fn unwind(&self, cause: &str) -> String; fn unwind(&self, cause: &str) -> String;
+1 -1
View File
@@ -1,7 +1,7 @@
use std::fmt::{Display, Formatter, Result as FmtResult}; use std::fmt::{Display, Formatter, Result as FmtResult};
use pyo3::{pyclass, pymethods}; use pyo3::{pyclass, pymethods};
use rosu_pp::{beatmap::BeatmapAttributes, Beatmap}; use akatsuki_pp::{beatmap::BeatmapAttributes, Beatmap};
#[pyclass(name = "BeatmapAttributes")] #[pyclass(name = "BeatmapAttributes")]
pub struct PyBeatmapAttributes { pub struct PyBeatmapAttributes {
+1 -1
View File
@@ -1,7 +1,7 @@
use std::fmt::{Debug, Display, Formatter, Result as FmtResult}; use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
use pyo3::{pyclass, pymethods}; use pyo3::{pyclass, pymethods};
use rosu_pp::{ use akatsuki_pp::{
catch::CatchPerformanceAttributes, mania::ManiaPerformanceAttributes, catch::CatchPerformanceAttributes, mania::ManiaPerformanceAttributes,
osu::OsuPerformanceAttributes, taiko::TaikoPerformanceAttributes, PerformanceAttributes, osu::OsuPerformanceAttributes, taiko::TaikoPerformanceAttributes, PerformanceAttributes,
}; };
+1 -1
View File
@@ -1,7 +1,7 @@
use std::fmt::{Debug, Display, Formatter, Result as FmtResult}; use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
use pyo3::{ffi, pyclass, pymethods, types::PyList, IntoPy, IntoPyPointer, Py, PyObject, Python}; use pyo3::{ffi, pyclass, pymethods, types::PyList, IntoPy, IntoPyPointer, Py, PyObject, Python};
use rosu_pp::{ use akatsuki_pp::{
catch::CatchStrains, mania::ManiaStrains, osu::OsuStrains, taiko::TaikoStrains, Strains, catch::CatchStrains, mania::ManiaStrains, osu::OsuStrains, taiko::TaikoStrains, Strains,
}; };