Skip to content

Commit

Permalink
disable pending test
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed May 19, 2024
1 parent 4839cbb commit 2a8e347
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .grit/patterns/python/_test_replace_import_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,39 +82,39 @@ from new_anthropic_place import SauceLinguist
from new_anthropic_place import SauceLinguist as SauceLinguist
```

## Multiple from imports

It should handle cleaning up two different ones:
## If there is an unchanged import in the middle, keep it

```py
from langchain.chains.ernie_functions.base import (
convert_to_ernie_function,
create_ernie_fn_chain,
keep_this,
create_ernie_fn_chain
)
```

```py
from langchain.chains.ernie_functions.base import (
keep_this
)

from langchain_community.chains import convert_to_ernie_function

from langchain_community.chains import create_ernie_fn_chain
```

## If there is an unchanged import in the middle, keep it
<!-- ## Multiple from imports
It should handle cleaning up two different ones:
```py
from langchain.chains.ernie_functions.base import (
convert_to_ernie_function,
keep_this,
create_ernie_fn_chain
create_ernie_fn_chain,
)
```
```py
from langchain.chains.ernie_functions.base import (
keep_this
)

from langchain_community.chains import convert_to_ernie_function
from langchain_community.chains import create_ernie_fn_chain
```
``` -->

0 comments on commit 2a8e347

Please sign in to comment.