Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/test/node/fixtures/pseudodiff/09-indent2-one.diff
13406 views
1
a = 0
2
foo = Foo()
3
bar = Bar()
4
5
- b = a and foo or bar
6
+ b = foo if a else bar
7
8
# This should not be flagged as an error because
9
# the type of b should be type Foo.
10
b.do_something1()
11
12
# This should be flagged as an error because
13
# Bar doesn't define a do_something2 method.
14
b.do_something2()
15