Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #2842

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,7 @@ def test_write_version(self):
self.assertIsNone(sa.select((version_table.c.version,)).scalar())

# This should fail because the table has no version info and is,
# therefore, consdered v0
# therefore, considered v0
with self.assertRaises(AssetDBVersionError):
check_version_info(self.engine, version_table, -2)

Expand Down
2 changes: 1 addition & 1 deletion zipline/data/minute_bars.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def write_sid(self, sid, df, invalid_data_behavior='warn'):
Parameters
----------
sid : int
The asset identifer for the data being written.
The asset identifier for the data being written.
df : pd.DataFrame
DataFrame of market data with the following characteristics.
columns : ('open', 'high', 'low', 'close', 'volume')
Expand Down
2 changes: 1 addition & 1 deletion zipline/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class WrongDataForTransform(ZiplineError):
class UnsupportedSlippageModel(ZiplineError):
"""
Raised if a user script calls the set_slippage magic
with a slipage object that isn't a VolumeShareSlippage or
with a slippage object that isn't a VolumeShareSlippage or
FixedSlipapge
"""
msg = """
Expand Down
4 changes: 2 additions & 2 deletions zipline/finance/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def validate(self,
restraint given the information in `portfolio`, this method should
return None and have no externally-visible side-effects.

If the desired order violates this TradingControl's contraint, this
If the desired order violates this TradingControl's constraint, this
method should call self.fail(asset, amount).
"""
raise NotImplementedError
Expand Down Expand Up @@ -381,7 +381,7 @@ def validate(self,
the information in `portfolio` and `account`, this method should
return None and have no externally-visible side-effects.

If the desired order violates this AccountControl's contraint, this
If the desired order violates this AccountControl's constraint, this
method should call self.fail().
"""
raise NotImplementedError
Expand Down