From 9312abf223f2ce86db5282f28323dc40feed281a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 11 Jul 2022 12:57:49 +0200 Subject: [PATCH 1/4] Get rid of the Union --- project_euler/problem_101/sol1.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project_euler/problem_101/sol1.py b/project_euler/problem_101/sol1.py index 27438e086c4f..f946c194a660 100644 --- a/project_euler/problem_101/sol1.py +++ b/project_euler/problem_101/sol1.py @@ -44,9 +44,8 @@ from __future__ import annotations from collections.abc import Callable -from typing import Union -Matrix = list[list[Union[float, int]]] +Matrix = list[list[Union[float | int]]] def solve(matrix: Matrix, vector: Matrix) -> Matrix: From 7fec8eb029bd9fa65e6fa7109a92b11d5115f7bd Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Mon, 11 Jul 2022 10:58:16 +0000 Subject: [PATCH 2/4] updating DIRECTORY.md --- DIRECTORY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/DIRECTORY.md b/DIRECTORY.md index 2e9c03cbcd9b..c8f03658c537 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -444,6 +444,7 @@ * [Scoring Functions](machine_learning/scoring_functions.py) * [Sequential Minimum Optimization](machine_learning/sequential_minimum_optimization.py) * [Similarity Search](machine_learning/similarity_search.py) + * [Support Vector Machines](machine_learning/support_vector_machines.py) * [Word Frequency Functions](machine_learning/word_frequency_functions.py) ## Maths From 8d9d9526447ce8ed990e2c9ae5c551d7b59dd3c6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 11 Jul 2022 13:00:01 +0200 Subject: [PATCH 3/4] Get rid of the Union --- project_euler/problem_101/sol1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_euler/problem_101/sol1.py b/project_euler/problem_101/sol1.py index f946c194a660..d5c503af796a 100644 --- a/project_euler/problem_101/sol1.py +++ b/project_euler/problem_101/sol1.py @@ -45,7 +45,7 @@ from collections.abc import Callable -Matrix = list[list[Union[float | int]]] +Matrix = list[list[float | int]] def solve(matrix: Matrix, vector: Matrix) -> Matrix: From 22a656861614766ca062822b9c1584acf6faf5e7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 11 Jul 2022 13:06:39 +0200 Subject: [PATCH 4/4] Remove the redundant pre-commit runs. --- .github/workflows/pre-commit.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 3b128bc540bf..eb5e3d4ce1cd 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,6 +1,10 @@ name: pre-commit -on: [push, pull_request] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: pre-commit: