-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nate/sys-prompt-file
- Loading branch information
Showing
138 changed files
with
5,754 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
26 changes: 26 additions & 0 deletions
26
core/autocomplete/context/root-path-context/test/files/base_module.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# File: base_module.py | ||
|
||
class BaseClass: | ||
def __init__(self): | ||
print("BaseClass initialized") | ||
|
||
class Collection: | ||
def __init__(self): | ||
print("Collection initialized") | ||
|
||
class Address: | ||
def __init__(self, street: str, city: str, zip_code: str): | ||
self.street = street | ||
self.city = city | ||
self.zip_code = zip_code | ||
|
||
def __str__(self): | ||
return f"{self.street}, {self.city}, {self.zip_code}" | ||
|
||
class Person: | ||
def __init__(self, name: str, address: Address): | ||
self.name = name | ||
self.address = address | ||
|
||
def __str__(self): | ||
return f"{self.name} lives at {self.address}" |
32 changes: 32 additions & 0 deletions
32
core/autocomplete/context/root-path-context/test/files/file1.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace BaseNamespace; | ||
|
||
use BaseNamespace\BaseClass; | ||
use BaseNamespace\Interfaces\FirstInterface; | ||
use BaseNamespace\Interfaces\SecondInterface; | ||
use BaseNamespace\Person; | ||
use BaseNamespace\Address; | ||
|
||
function getAddress(Person $person): Address | ||
{ | ||
return $person->getAddress(); | ||
} | ||
|
||
class Group extends BaseClass implements FirstInterface, SecondInterface | ||
{ | ||
private array $people; | ||
|
||
public function __construct(array $people) | ||
{ | ||
parent::__construct(); | ||
$this->people = $people; | ||
} | ||
|
||
public function getPersonAddress(Person $person): Address | ||
{ | ||
return getAddress($person); | ||
} | ||
} | ||
|
||
?> |
13 changes: 13 additions & 0 deletions
13
core/autocomplete/context/root-path-context/test/files/file1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from .base_module import BaseClass, Collection, Person, Address | ||
from typing import List | ||
|
||
def get_address(person: Person) -> Address: | ||
return person.address | ||
|
||
class Group(BaseClass, Collection): | ||
def __init__(self, people: List[Person]) -> None: | ||
super().__init__() | ||
self.people = people | ||
|
||
def get_person_address(self, person: Person) -> Address: | ||
return get_address(person) |
File renamed without changes.
Oops, something went wrong.