@@ -40,7 +40,7 @@ impl TypeEvaluator {
40
40
let decl = symbol
41
41
. declaration_until_position ( position) ;
42
42
match decl {
43
- Some ( decl) => self . get_type_from_declaration ( & decl) ,
43
+ Some ( decl) => self . get_type_from_declaration ( decl) ,
44
44
None => Ok ( PythonType :: Unknown ) ,
45
45
}
46
46
}
@@ -314,207 +314,207 @@ impl TraversalVisitorImmutGeneric<PythonType> for TypeEvaluator {
314
314
}
315
315
316
316
fn visit_import ( & self , _i : & ast:: Import ) -> PythonType {
317
- return PythonType :: Unknown ;
317
+ PythonType :: Unknown
318
318
}
319
319
320
320
fn visit_import_from ( & self , _i : & ast:: ImportFrom ) -> PythonType {
321
- return PythonType :: Unknown ;
321
+ PythonType :: Unknown
322
322
}
323
323
324
324
fn visit_if ( & self , i : & parser:: ast:: If ) -> PythonType {
325
- return PythonType :: Unknown ;
325
+ PythonType :: Unknown
326
326
}
327
327
328
328
fn visit_while ( & self , w : & parser:: ast:: While ) -> PythonType {
329
- return PythonType :: Unknown ;
329
+ PythonType :: Unknown
330
330
}
331
331
332
332
fn visit_for ( & self , f : & parser:: ast:: For ) -> PythonType {
333
- return PythonType :: Unknown ;
333
+ PythonType :: Unknown
334
334
}
335
335
336
336
fn visit_with ( & self , w : & parser:: ast:: With ) -> PythonType {
337
- return PythonType :: Unknown ;
337
+ PythonType :: Unknown
338
338
}
339
339
340
340
fn visit_try ( & self , t : & parser:: ast:: Try ) -> PythonType {
341
- return PythonType :: Unknown ;
341
+ PythonType :: Unknown
342
342
}
343
343
344
344
fn visit_try_star ( & self , t : & parser:: ast:: TryStar ) -> PythonType {
345
- return PythonType :: Unknown ;
345
+ PythonType :: Unknown
346
346
}
347
347
348
348
fn visit_function_def ( & self , f : & parser:: ast:: FunctionDef ) -> PythonType {
349
- return PythonType :: Unknown ;
349
+ PythonType :: Unknown
350
350
}
351
351
352
352
fn visit_class_def ( & self , c : & parser:: ast:: ClassDef ) -> PythonType {
353
- return PythonType :: Unknown ;
353
+ PythonType :: Unknown
354
354
}
355
355
356
356
fn visit_match ( & self , m : & parser:: ast:: Match ) -> PythonType {
357
- return PythonType :: Unknown ;
357
+ PythonType :: Unknown
358
358
}
359
359
360
360
fn visit_constant ( & self , _c : & ast:: Constant ) -> PythonType {
361
- return PythonType :: Unknown ;
361
+ PythonType :: Unknown
362
362
}
363
363
364
364
fn visit_list ( & self , _l : & ast:: List ) -> PythonType {
365
- return PythonType :: Unknown ;
365
+ PythonType :: Unknown
366
366
}
367
367
368
368
fn visit_tuple ( & self , _t : & ast:: Tuple ) -> PythonType {
369
- return PythonType :: Unknown ;
369
+ PythonType :: Unknown
370
370
}
371
371
372
372
fn visit_dict ( & self , _d : & ast:: Dict ) -> PythonType {
373
- return PythonType :: Unknown ;
373
+ PythonType :: Unknown
374
374
}
375
375
376
376
fn visit_set ( & self , _s : & ast:: Set ) -> PythonType {
377
- return PythonType :: Unknown ;
377
+ PythonType :: Unknown
378
378
}
379
379
380
380
fn visit_name ( & self , _n : & ast:: Name ) -> PythonType {
381
- return PythonType :: Unknown ;
381
+ PythonType :: Unknown
382
382
}
383
383
384
384
fn visit_bool_op ( & self , _b : & ast:: BoolOperation ) -> PythonType {
385
- return PythonType :: Unknown ;
385
+ PythonType :: Unknown
386
386
}
387
387
388
388
fn visit_unary_op ( & self , _u : & ast:: UnaryOperation ) -> PythonType {
389
- return PythonType :: Unknown ;
389
+ PythonType :: Unknown
390
390
}
391
391
392
392
fn visit_bin_op ( & self , _b : & ast:: BinOp ) -> PythonType {
393
- return PythonType :: Unknown ;
393
+ PythonType :: Unknown
394
394
}
395
395
396
396
fn visit_named_expr ( & self , _n : & ast:: NamedExpression ) -> PythonType {
397
- return PythonType :: Unknown ;
397
+ PythonType :: Unknown
398
398
}
399
399
400
400
fn visit_yield ( & self , _y : & ast:: Yield ) -> PythonType {
401
- return PythonType :: Unknown ;
401
+ PythonType :: Unknown
402
402
}
403
403
404
404
fn visit_yield_from ( & self , _y : & ast:: YieldFrom ) -> PythonType {
405
- return PythonType :: Unknown ;
405
+ PythonType :: Unknown
406
406
}
407
407
408
408
fn visit_starred ( & self , _s : & ast:: Starred ) -> PythonType {
409
- return PythonType :: Unknown ;
409
+ PythonType :: Unknown
410
410
}
411
411
412
412
fn visit_generator ( & self , _g : & ast:: Generator ) -> PythonType {
413
- return PythonType :: Unknown ;
413
+ PythonType :: Unknown
414
414
}
415
415
416
416
fn visit_list_comp ( & self , _l : & ast:: ListComp ) -> PythonType {
417
- return PythonType :: Unknown ;
417
+ PythonType :: Unknown
418
418
}
419
419
420
420
fn visit_set_comp ( & self , _s : & ast:: SetComp ) -> PythonType {
421
- return PythonType :: Unknown ;
421
+ PythonType :: Unknown
422
422
}
423
423
424
424
fn visit_dict_comp ( & self , _d : & ast:: DictComp ) -> PythonType {
425
- return PythonType :: Unknown ;
425
+ PythonType :: Unknown
426
426
}
427
427
428
428
fn visit_attribute ( & self , _a : & ast:: Attribute ) -> PythonType {
429
- return PythonType :: Unknown ;
429
+ PythonType :: Unknown
430
430
}
431
431
432
432
fn visit_subscript ( & self , _s : & ast:: Subscript ) -> PythonType {
433
- return PythonType :: Unknown ;
433
+ PythonType :: Unknown
434
434
}
435
435
436
436
fn visit_slice ( & self , _s : & ast:: Slice ) -> PythonType {
437
- return PythonType :: Unknown ;
437
+ PythonType :: Unknown
438
438
}
439
439
440
440
fn visit_call ( & self , _c : & ast:: Call ) -> PythonType {
441
- return PythonType :: Unknown ;
441
+ PythonType :: Unknown
442
442
}
443
443
444
444
fn visit_await ( & self , _a : & ast:: Await ) -> PythonType {
445
- return PythonType :: Unknown ;
445
+ PythonType :: Unknown
446
446
}
447
447
448
448
fn visit_compare ( & self , _c : & ast:: Compare ) -> PythonType {
449
- return PythonType :: Unknown ;
449
+ PythonType :: Unknown
450
450
}
451
451
452
452
fn visit_lambda ( & self , _l : & ast:: Lambda ) -> PythonType {
453
- return PythonType :: Unknown ;
453
+ PythonType :: Unknown
454
454
}
455
455
456
456
fn visit_if_exp ( & self , _i : & ast:: IfExp ) -> PythonType {
457
- return PythonType :: Unknown ;
457
+ PythonType :: Unknown
458
458
}
459
459
460
460
fn visit_joined_str ( & self , _j : & ast:: JoinedStr ) -> PythonType {
461
- return PythonType :: Unknown ;
461
+ PythonType :: Unknown
462
462
}
463
463
464
464
fn visit_formatted_value ( & self , _f : & ast:: FormattedValue ) -> PythonType {
465
- return PythonType :: Unknown ;
465
+ PythonType :: Unknown
466
466
}
467
467
468
468
fn visit_alias ( & self , _a : & ast:: Alias ) -> PythonType {
469
- return PythonType :: Unknown ;
469
+ PythonType :: Unknown
470
470
}
471
471
472
472
fn visit_assign ( & self , _a : & ast:: Assign ) -> PythonType {
473
- return PythonType :: Unknown ;
473
+ PythonType :: Unknown
474
474
}
475
475
476
476
fn visit_ann_assign ( & self , _a : & ast:: AnnAssign ) -> PythonType {
477
- return PythonType :: Unknown ;
477
+ PythonType :: Unknown
478
478
}
479
479
480
480
fn visit_aug_assign ( & self , _a : & ast:: AugAssign ) -> PythonType {
481
- return PythonType :: Unknown ;
481
+ PythonType :: Unknown
482
482
}
483
483
484
484
fn visit_assert ( & self , _a : & ast:: Assert ) -> PythonType {
485
- return PythonType :: Unknown ;
485
+ PythonType :: Unknown
486
486
}
487
487
488
488
fn visit_pass ( & self , _p : & ast:: Pass ) -> PythonType {
489
- return PythonType :: Unknown ;
489
+ PythonType :: Unknown
490
490
}
491
491
492
492
fn visit_delete ( & self , _d : & ast:: Delete ) -> PythonType {
493
- return PythonType :: Unknown ;
493
+ PythonType :: Unknown
494
494
}
495
495
496
496
fn visit_return ( & self , _r : & ast:: Return ) -> PythonType {
497
- return PythonType :: Unknown ;
497
+ PythonType :: Unknown
498
498
}
499
499
500
500
fn visit_raise ( & self , _r : & ast:: Raise ) -> PythonType {
501
- return PythonType :: Unknown ;
501
+ PythonType :: Unknown
502
502
}
503
503
504
504
fn visit_break ( & self , _b : & ast:: Break ) -> PythonType {
505
- return PythonType :: Unknown ;
505
+ PythonType :: Unknown
506
506
}
507
507
508
508
fn visit_continue ( & self , _c : & ast:: Continue ) -> PythonType {
509
- return PythonType :: Unknown ;
509
+ PythonType :: Unknown
510
510
}
511
511
512
512
fn visit_global ( & self , _g : & ast:: Global ) -> PythonType {
513
- return PythonType :: Unknown ;
513
+ PythonType :: Unknown
514
514
}
515
515
516
516
fn visit_nonlocal ( & self , _n : & ast:: Nonlocal ) -> PythonType {
517
- return PythonType :: Unknown ;
517
+ PythonType :: Unknown
518
518
}
519
519
}
520
520
0 commit comments