diff mbox series

[v5,23/36] qapi/commands.py: enable checking with mypy

Message ID 20201005195158.2348217-24-jsnow@redhat.com
State Superseded
Headers show
Series qapi: static typing conversion, pt1 | expand

Commit Message

John Snow Oct. 5, 2020, 7:51 p.m. UTC
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
---
 scripts/qapi/mypy.ini | 5 -----
 1 file changed, 5 deletions(-)

Comments

Markus Armbruster Oct. 7, 2020, 11:37 a.m. UTC | #1
John Snow <jsnow@redhat.com> writes:

> Signed-off-by: John Snow <jsnow@redhat.com>

> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>

> Reviewed-by: Cleber Rosa <crosa@redhat.com>

> ---

>  scripts/qapi/mypy.ini | 5 -----

>  1 file changed, 5 deletions(-)

>

> diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini

> index 5df11e53fd1..8ab9ac52cc4 100644

> --- a/scripts/qapi/mypy.ini

> +++ b/scripts/qapi/mypy.ini

> @@ -4,11 +4,6 @@ strict_optional = False

>  disallow_untyped_calls = False

>  python_version = 3.6

>  

> -[mypy-qapi.commands]

> -disallow_untyped_defs = False

> -disallow_incomplete_defs = False

> -check_untyped_defs = False

> -

>  [mypy-qapi.error]

>  disallow_untyped_defs = False

>  disallow_incomplete_defs = False


The equivalent change for  events.py you squashed into the commit adding
type hints.  Any particular reason for not doing the same here?
John Snow Oct. 7, 2020, 3:49 p.m. UTC | #2
On 10/7/20 7:37 AM, Markus Armbruster wrote:
> John Snow <jsnow@redhat.com> writes:

> 

>> Signed-off-by: John Snow <jsnow@redhat.com>

>> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>

>> Reviewed-by: Cleber Rosa <crosa@redhat.com>

>> ---

>>   scripts/qapi/mypy.ini | 5 -----

>>   1 file changed, 5 deletions(-)

>>

>> diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini

>> index 5df11e53fd1..8ab9ac52cc4 100644

>> --- a/scripts/qapi/mypy.ini

>> +++ b/scripts/qapi/mypy.ini

>> @@ -4,11 +4,6 @@ strict_optional = False

>>   disallow_untyped_calls = False

>>   python_version = 3.6

>>   

>> -[mypy-qapi.commands]

>> -disallow_untyped_defs = False

>> -disallow_incomplete_defs = False

>> -check_untyped_defs = False

>> -

>>   [mypy-qapi.error]

>>   disallow_untyped_defs = False

>>   disallow_incomplete_defs = False

> 

> The equivalent change for  events.py you squashed into the commit adding

> type hints.  Any particular reason for not doing the same here?

> 


Just making my life easier for re-arranging commits and rebasing. By 
separating them out whenever I had > 1 fix patch prior, I was able to 
freely re-arrange and re-order the prior fix patches.

They can be squashed on commit if desired, but for my own sake and 
inability to predict review comments, they are separate.

--js
Markus Armbruster Oct. 8, 2020, 7:52 a.m. UTC | #3
John Snow <jsnow@redhat.com> writes:

> On 10/7/20 7:37 AM, Markus Armbruster wrote:

>> John Snow <jsnow@redhat.com> writes:

>> 

>>> Signed-off-by: John Snow <jsnow@redhat.com>

>>> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>

>>> Reviewed-by: Cleber Rosa <crosa@redhat.com>

>>> ---

>>>   scripts/qapi/mypy.ini | 5 -----

>>>   1 file changed, 5 deletions(-)

>>>

>>> diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini

>>> index 5df11e53fd1..8ab9ac52cc4 100644

>>> --- a/scripts/qapi/mypy.ini

>>> +++ b/scripts/qapi/mypy.ini

>>> @@ -4,11 +4,6 @@ strict_optional = False

>>>   disallow_untyped_calls = False

>>>   python_version = 3.6

>>>   -[mypy-qapi.commands]

>>> -disallow_untyped_defs = False

>>> -disallow_incomplete_defs = False

>>> -check_untyped_defs = False

>>> -

>>>   [mypy-qapi.error]

>>>   disallow_untyped_defs = False

>>>   disallow_incomplete_defs = False

>> The equivalent change for  events.py you squashed into the commit

>> adding

>> type hints.  Any particular reason for not doing the same here?

>> 

>

> Just making my life easier for re-arranging commits and rebasing. By

> separating them out whenever I had > 1 fix patch prior, I was able to 

> freely re-arrange and re-order the prior fix patches.

>

> They can be squashed on commit if desired, but for my own sake and

> inability to predict review comments, they are separate.


I only asked because some are separate, and some are not.

Squashing on commit is an easy way toward consistency here.
diff mbox series

Patch

diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini
index 5df11e53fd1..8ab9ac52cc4 100644
--- a/scripts/qapi/mypy.ini
+++ b/scripts/qapi/mypy.ini
@@ -4,11 +4,6 @@  strict_optional = False
 disallow_untyped_calls = False
 python_version = 3.6
 
-[mypy-qapi.commands]
-disallow_untyped_defs = False
-disallow_incomplete_defs = False
-check_untyped_defs = False
-
 [mypy-qapi.error]
 disallow_untyped_defs = False
 disallow_incomplete_defs = False