From 82ce3656fbf46706eb6d04636326739f2361d56e Mon Sep 17 00:00:00 2001 From: daretohack Date: Wed, 24 Feb 2021 21:34:01 +0530 Subject: [PATCH 1/5] [mypy] Fix type annotations for cellullar_automata --- cellular_automata/conways_game_of_life.py | 2 +- cellular_automata/one_dimensional.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cellular_automata/conways_game_of_life.py b/cellular_automata/conways_game_of_life.py index 321baa3a3794..346b804c6205 100644 --- a/cellular_automata/conways_game_of_life.py +++ b/cellular_automata/conways_game_of_life.py @@ -7,7 +7,7 @@ from typing import List -from PIL import Image +from PIL import Image #type: ignore # Define glider example GLIDER = [ diff --git a/cellular_automata/one_dimensional.py b/cellular_automata/one_dimensional.py index da77e444502f..85ae0cf86a0c 100644 --- a/cellular_automata/one_dimensional.py +++ b/cellular_automata/one_dimensional.py @@ -6,7 +6,7 @@ from __future__ import annotations -from PIL import Image +from PIL import Image #type: ignore # Define the first generation of cells # fmt: off From 42e5fc01f26a977181a5284f688b8dfe399ea06b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Mar 2021 07:19:07 +0100 Subject: [PATCH 2/5] mypy --ignore-missing-imports --- cellular_automata/conways_game_of_life.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cellular_automata/conways_game_of_life.py b/cellular_automata/conways_game_of_life.py index 87e8c4ecfa60..730e4269f5b8 100644 --- a/cellular_automata/conways_game_of_life.py +++ b/cellular_automata/conways_game_of_life.py @@ -8,7 +8,7 @@ from typing import List -from PIL import Image #type: ignore +from PIL import Image # Define glider example From b757e3c4c5d014aeb41f01407acb9f74940f6665 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Mar 2021 07:19:32 +0100 Subject: [PATCH 3/5] mypy --ignore-missing-imports --- cellular_automata/one_dimensional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cellular_automata/one_dimensional.py b/cellular_automata/one_dimensional.py index 0f4488b42be5..49de868b3e13 100644 --- a/cellular_automata/one_dimensional.py +++ b/cellular_automata/one_dimensional.py @@ -7,7 +7,7 @@ from __future__ import annotations -from PIL import Image #type: ignore +from PIL import Image # Define the first generation of cells From 483111d6c86277ac3f3b29ef7cb13faed924eec0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Mar 2021 07:23:10 +0100 Subject: [PATCH 4/5] Blank lines --- cellular_automata/conways_game_of_life.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cellular_automata/conways_game_of_life.py b/cellular_automata/conways_game_of_life.py index 730e4269f5b8..321baa3a3794 100644 --- a/cellular_automata/conways_game_of_life.py +++ b/cellular_automata/conways_game_of_life.py @@ -7,10 +7,8 @@ from typing import List - from PIL import Image - # Define glider example GLIDER = [ [0, 1, 0, 0, 0, 0, 0, 0], From 01ba3836946ac385918c8fb8c5b9d6ad716d4b7d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 20 Mar 2021 07:23:45 +0100 Subject: [PATCH 5/5] Blank lines --- cellular_automata/one_dimensional.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cellular_automata/one_dimensional.py b/cellular_automata/one_dimensional.py index 49de868b3e13..da77e444502f 100644 --- a/cellular_automata/one_dimensional.py +++ b/cellular_automata/one_dimensional.py @@ -6,10 +6,8 @@ from __future__ import annotations - from PIL import Image - # Define the first generation of cells # fmt: off CELLS = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,