Skip to content

Commit

Permalink
Fix handling of the anything_else check, this way deals with multipro…
Browse files Browse the repository at this point in the history
…cessing correctly
  • Loading branch information
UD-mmcminn authored and rlouf committed Dec 9, 2024
1 parent d9adaa4 commit f07df79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/outlines_core/fsm/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def fsm_info(self):
{
k: v
for k, v in self.alphabet._symbol_mapping.items()
if k != anything_else
if not isinstance(k, _AnythingElseCls)
},
)

Expand Down

0 comments on commit f07df79

Please sign in to comment.