From b0a939bcf96b72aca078c095ba2d640188f7185a Mon Sep 17 00:00:00 2001 From: Ilia Gyrdymov Date: Tue, 2 Jan 2024 16:05:37 +0200 Subject: [PATCH] Upgrade injector dependency (#252) --- lib/src/classifier/logistic_regressor/logistic_regressor.dart | 1 + lib/src/extensions/injector.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/classifier/logistic_regressor/logistic_regressor.dart b/lib/src/classifier/logistic_regressor/logistic_regressor.dart index ec7978d5..ed5f4c61 100644 --- a/lib/src/classifier/logistic_regressor/logistic_regressor.dart +++ b/lib/src/classifier/logistic_regressor/logistic_regressor.dart @@ -1,3 +1,4 @@ +// ignore_for_file: non_constant_identifier_names import 'package:ml_algo/src/classifier/linear_classifier.dart'; import 'package:ml_algo/src/classifier/logistic_regressor/_init_module.dart'; import 'package:ml_algo/src/classifier/logistic_regressor/logistic_regressor_factory.dart'; diff --git a/lib/src/extensions/injector.dart b/lib/src/extensions/injector.dart index e815d57e..7dbaff30 100644 --- a/lib/src/extensions/injector.dart +++ b/lib/src/extensions/injector.dart @@ -3,7 +3,7 @@ import 'package:injector/injector.dart'; extension InjectorExtension on Injector { /// Registers a dependency only if it doesn't exist void registerSingletonIf( - Builder builder, { + DependencyBuilder builder, { bool override = false, String dependencyName = '', }) { diff --git a/pubspec.yaml b/pubspec.yaml index 58066e22..46308375 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,7 +8,7 @@ environment: dependencies: collection: ^1.16.0 - injector: ^2.0.0 + injector: ^3.0.0 json_annotation: ^4.0.0 ml_dataframe: ^1.6.0 ml_linalg: ^13.11.15