[05:21:56] <devesh> Can I know the address of the slack channel, and how can I join it myself
[05:22:30] <devesh> The slack channel for pypa-dev
[13:02:24] <cjc7373> A basic question.. How to debug the tests? When I tried to debug using tox integration in pycharm, it raised some error, see here: https://dpaste.org/NFZL. Environment: Windows 10, python 3.8
[13:03:02] <pradyunsg> cjc7373: I think you're asking about pip?
[15:32:12] <tos9> was the funny :foo: syntax inspired by some other previous tool
[15:34:17] <pradyunsg> cjc7373: I don't think there's any easy way to do that (plug a debugger with pip's tests) since they run in a subprocess, in a carefully crafted environment that's isolated from the system fairly decently.
[15:35:02] <pradyunsg> s/they run/the pip (executed as part of the test) runs/
[15:35:21] <pradyunsg> tos9: happened before I came around.
[19:39:47] <devesh> No worries, you have already addressed it. Just that2 other reviewers pointed out the same thing as you did (https://github.com/pypa/pip/pull/7977#pullrequestreview-387724438)
[19:40:07] <devesh> So I was wondering if my clarification/communication on the PR was unclear
[19:40:18] <devesh> Something I can improve on in future
[19:45:32] <pradyunsg> devesh: I don't think your clarification was unclear; but it does come across as "this works therefore it's correct" which is dismissive.
[19:46:26] <devesh> Sure, more research is needed from my end to prove my point I guess, including looking at typeshed like you did
[19:47:49] <pradyunsg> devesh: I'm basically sure that it was not the intent you had there, but it is often difficult to convey intent in pure-text mediums where we don't have the ability to, for example, modulate our pitch to convey intent.
[19:48:18] <devesh> Yes, but I agree on doing more research for your own learning purpose too
[19:49:23] <devesh> BTW, can I now either revert the file and the affected with the incorrect annotation, or add an Any annotation?
[19:49:41] <devesh> Because the other file I have added is fine with the added annotations
[19:50:58] <devesh> So instead of putting in the wrong annotation, we either use any, or visit that file __init__.py later
[19:51:53] <pradyunsg> devesh: I think we should: (1) file an issue with typeshed that "hey, your annotation of difflib.get_closest_matches` is wrong (2) change the PR have the correct annotating and (3) use `pip._internal.utils.typing.cast` (I think that's where it lives now?) to cast the value to the correct type, adding a comment that describes why we're doing a cast there, linking to the issue that was filed with typeshed.
[19:52:10] <pradyunsg> oops, I messed up the backticks, but whatever.
[19:52:39] <pradyunsg> I mean, or we can skip (2) and (3), and come back later. :P
[19:52:54] <pradyunsg> Actually, yea, I think I like that better.
[19:53:44] <pradyunsg> Skipping (2) and (3) is basically "do less work now, have a clear indicator that work is needed (the comments at top of file) and don't create more work for later".
[19:56:43] <devesh> Let me do that, yes I don't want the PR reviews and work of maintainers go to waste
[19:56:52] <devesh> Have seen so many PR's and good work abandoned
[19:57:57] <devesh> And did you look at the comment here: https://github.com/python/typeshed/issues/2067#issuecomment-382412265 , Is that a valid concern?
[20:18:30] <devesh> Hi pradyunsg: I have filed a bug with typeshed and have removed the file in question as well, please take a look whenever you can :)
[20:24:00] <pradyunsg> devesh: I did look at the typeshed issue you linked to -- I think that's a separate issue.
[20:24:57] <pradyunsg> devesh: thanks for filing the typeshed issue! ^>^
[20:27:42] <devesh> No worries pradyunsg, I didn't know of typeshed and it's relation to type annotations before this
[20:28:13] <pradyunsg> devesh: now you know that! yay!
[20:28:14] <devesh> But feel free to add more details if needed in the ticket at https://github.com/python/typeshed/issues/3906
[20:29:25] <devesh> Hehe, please also relook at the PR pradyunsg :), especially if the comment in the __init__.py correctly notes down the issue :)
[20:29:41] <pradyunsg> devesh: sure, I'll do that in a bit. :)
[20:29:57] <pradyunsg> need to go do some chores now.