Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce mypy errors (Part 29) #9890

Closed
twisted-trac opened this issue Jul 2, 2020 · 3 comments
Closed

Reduce mypy errors (Part 29) #9890

twisted-trac opened this issue Jul 2, 2020 · 3 comments

Comments

@twisted-trac
Copy link

rodrigc's avatar @rodrigc reported
Trac ID trac#9890
Type enhancement
Created 2020-07-02 23:34:40Z

This is a continuation of ticket:9889

It would be good to eliminate mypy errors such as:

src/twisted/pair/rawudp.py:41:5: error: Signature of "RawUDPProtocol" incompatible with "datagramReceived" of supertype "IRawDatagramProtocol"  [override]
        def datagramReceived(self,
        ^
src/twisted/pair/ip.py:49:5: error: Signature of "IPProtocol" incompatible with "datagramReceived" of supertype "IRawPacketProtocol"  [override]
        def datagramReceived(self,
        ^
src/twisted/pair/test/test_tuntap.py:1343:5: error: Signature of "IPRecordingProtocol" incompatible with "datagramReceived" of supertype "IRawPacketProtocol"  [override]
        def datagramReceived(self, datagram, partial=False):
        ^
src/twisted/pair/test/test_tuntap.py:1358:24: error: Incompatible types in assignment (expression has type "Type[IPRecordingProtocol]", variable has type
src/twisted/pair/test/test_tuntap.py:1381:24: error: Incompatible types in assignment (expression has type "Type[EthernetRecordingProtocol]", variable has type
src/twisted/pair/test/test_ip.py:16:5: error: Signature of "MyProtocol" incompatible with "datagramReceived" of supertype "IRawDatagramProtocol"  [override]
        def datagramReceived(self, data, **kw):
        ^
src/twisted/pair/test/test_ethernet.py:22:5: error: Signature of "MyProtocol" incompatible with "datagramReceived" of supertype "IRawPacketProtocol"  [override]
        def datagramReceived(self, data, **kw):
        ^
Searchable metadata
trac-id__9890 9890
type__enhancement enhancement
reporter__rodrigc rodrigc
priority__normal normal
milestone__publish_types publish types
branch__ 
branch_author__ 
status__closed closed
resolution__fixed fixed
component__core core
keywords__None None
time__1593732880864749 1593732880864749
changetime__1594360403322407 1594360403322407
version__None None
owner__Craig_Rodrigues__rodrigc_____ Craig Rodrigues <rodrigc@...>

@twisted-trac
Copy link
Author

rodrigc's avatar @rodrigc commented

#1334

@twisted-trac
Copy link
Author

rodrigc's avatar @rodrigc commented

Approved here: #1334 (review)

@twisted-trac
Copy link
Author

rodrigc's avatar @rodrigc set owner to @rodrigc
@rodrigc set status to closed

In changeset d1802b7

#!CommitTicketReference repository="" revision="d1802b75341e54dc7a3b41de9ad922236b736041"
Merge pull request #1334 from twisted/9890-rodrigc-mypy

[mypy] [9890] Reduce mypy errors

Author: rodrigc
Reviewer: adiroiban
Fixes: ticket:9890

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant