James D. Lin

Results 49 issues of James D. Lin

Reproducible example: ```python import contextlib import typing def f() -> int: try: with contextlib.nullcontext(): return 42 finally: pass # Line 9 ``` Running `pytype` (2021.05.25) on the above code prints:...

bug
cat: control flow

Reproducible example: ```python table = { # Description #1 "foo": "lorem ipsum dolor est", # Description #2 "bar": "lorem ipsum dolor est", # Description #2 "baz": "lorem ipsum dolor est",...

Suppose I have: ```python print("Line 1\n" "Line 2\n" "Line 3\n") ``` yapf (0.31.0) wants to format it as: ```python print("Line 1\n" "Line 2\n" "Line 3\n") ``` I argue that this...

[`linked_scroll_controller`](https://pub.dev/packages/linked_scroll_controller) now exists as a separate package. The source-of-truth is still internal, but it internally has been moved out of `dart_src`, and my understanding is that the fork is no...

cleanup
tech debt
fix it friday
P3

In https://github.com/dart-lang/linter/issues/3126, @srawlins and I suggest that `no_leading_underscores_for_local_identifiers` *always* ignore plain underscores rather than ignoring them only in certain cases. I think maybe it should go even further: * Change...

set-recommended
lint proposal
status: pending

This was raised by https://stackoverflow.com/q/67384823/. Currently the presence of a mandatory option (added by https://github.com/dart-lang/args/pull/177) will cause `ArgParser.parse` to throw an exception whenever the option is omitted. I don't think...

type-enhancement
next-breaking-release

The documentation for [`DelegatingMap.addAll`](https://pub.dev/documentation/collection/latest/collection/DelegatingMap/addAll.html) states: > The operation is equivalent to doing `this[key] = value` for each key and associated value in other. That led me to mistakenly believe that...

type-documentation

Attempting to search from the search box from https://pub.dev/documentation/test/latest/ seems to match mostly only the library names. Even after navigating to a particular library, search won't work for names listed...

bug
P2

### Page URL https://dart.dev/guides/language/type-system#generic-type-assignment ### Page source https://github.com/dart-lang/site-www/tree/main/src/_guides/language/type-system.md ### Describe the problem Should the "Generic type assignment" section (https://dart.dev/guides/language/type-system#generic-type-assignment) mention that treating `Generic` as a subtype of `Generic` could introduce...

enhancement
p2-medium
e0-minutes
e1-hours

Page URL: https://www.dartlang.org/guides/libraries/create-library-packages Page source: https://github.com/dart-lang/site-www/tree/master/src/_guides/libraries/create-library-packages.md Description: https://www.dartlang.org/guides/language/language-tour#implementing-libraries has: > See Create Library Packages for advice on how to implement a library package, including: > > * How to organize...

LanguageTour
p2-medium
e2-days