Skip to content

Commit dad789d

Browse files
cclaussgithub-actions
and
github-actions
authored
Get rid of the Union (#6246)
* Get rid of the Union * updating DIRECTORY.md * Get rid of the Union * Remove the redundant pre-commit runs. Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent ba129de commit dad789d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Diff for: .github/workflows/pre-commit.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: pre-commit
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
48

59
jobs:
610
pre-commit:

Diff for: DIRECTORY.md

+1
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@
444444
* [Scoring Functions](machine_learning/scoring_functions.py)
445445
* [Sequential Minimum Optimization](machine_learning/sequential_minimum_optimization.py)
446446
* [Similarity Search](machine_learning/similarity_search.py)
447+
* [Support Vector Machines](machine_learning/support_vector_machines.py)
447448
* [Word Frequency Functions](machine_learning/word_frequency_functions.py)
448449

449450
## Maths

Diff for: project_euler/problem_101/sol1.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@
4444
from __future__ import annotations
4545

4646
from collections.abc import Callable
47-
from typing import Union
4847

49-
Matrix = list[list[Union[float, int]]]
48+
Matrix = list[list[float | int]]
5049

5150

5251
def solve(matrix: Matrix, vector: Matrix) -> Matrix:

0 commit comments

Comments
 (0)