From b99a40337399caa95acd0ee4d5f3b568d1007d16 Mon Sep 17 00:00:00 2001 From: Andreas Zeller Date: Tue, 27 Aug 2024 17:19:44 +0200 Subject: [PATCH] Some fixes for static type checking --- notebooks/Parser.ipynb | 2 +- notebooks/ProbabilisticGrammarFuzzer.ipynb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notebooks/Parser.ipynb b/notebooks/Parser.ipynb index 8ff8d394f..f92b7281b 100644 --- a/notebooks/Parser.ipynb +++ b/notebooks/Parser.ipynb @@ -1478,7 +1478,7 @@ " rule_.extend(token)\n", " rules_.append(rule_)\n", " g_[key] = rules_\n", - " return g_" + " return g_ # type: ignore" ] }, { diff --git a/notebooks/ProbabilisticGrammarFuzzer.ipynb b/notebooks/ProbabilisticGrammarFuzzer.ipynb index 1b9550a59..8407d3735 100644 --- a/notebooks/ProbabilisticGrammarFuzzer.ipynb +++ b/notebooks/ProbabilisticGrammarFuzzer.ipynb @@ -272,7 +272,7 @@ "labels = range(1, 10)\n", "fig1, ax1 = plt.subplots()\n", "ax1.pie(digit_probs, labels=labels, shadow=True, autopct='%1.1f%%',\n", - " counterclock=False, startangle=90)\n", + " counterclock=False, startangle=90) # type: ignore\n", "ax1.axis('equal');" ] }, @@ -2860,7 +2860,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.7" + "version": "3.11.6" }, "toc": { "base_numbering": 1,