Skip to content

Commit d73ce4b

Browse files
Tianhan Lumeta-codesync[bot]
authored andcommitted
Default with object.__init__ or object.__new__ when cannot find definitions for init or new methods
Summary: There seems no definition for `Exception.__init__` or `Exception.__new__` in `builtins`. In this case, we should probably default to the `object.__init__` or `object.__new__`. Reviewed By: arthaud Differential Revision: D85688232 fbshipit-source-id: d2f256be8efc175de7a5c86b1fd938222cce2162
1 parent 515a63e commit d73ce4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/interprocedural/test/callGraphTest.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,7 +2562,7 @@ let test_call_graph_of_define =
25622562
();
25632563
labeled_test_case __FUNCTION__ __LINE__
25642564
@@ assert_call_graph_of_define
2565-
~_migrated_to_pyrefly:false
2565+
~_migrated_to_pyrefly:true
25662566
~source:
25672567
{|
25682568
class C:
@@ -2586,7 +2586,7 @@ let test_call_graph_of_define =
25862586
();
25872587
labeled_test_case __FUNCTION__ __LINE__
25882588
@@ assert_call_graph_of_define
2589-
~_migrated_to_pyrefly:false
2589+
~_migrated_to_pyrefly:true
25902590
~source:
25912591
{|
25922592
def foo() -> None:
@@ -2624,7 +2624,7 @@ let test_call_graph_of_define =
26242624
();
26252625
labeled_test_case __FUNCTION__ __LINE__
26262626
@@ assert_call_graph_of_define
2627-
~_migrated_to_pyrefly:false
2627+
~_migrated_to_pyrefly:true
26282628
~source:
26292629
{|
26302630
def foo() -> None:

0 commit comments

Comments
 (0)