Skip to content

Commit

Permalink
Merge pull request #103 from ServiceNow/scratch/bug-fixes
Browse files Browse the repository at this point in the history
fix: address #101 and #102
  • Loading branch information
vetsin authored Apr 10, 2024
2 parents f1fed33 + e65fff2 commit 39d6bcf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ python = "^3.8"
requests = "2.31.0"
requests-oauthlib = { version = ">=1.2.0", optional = true}
certifi = "2023.7.22"
pip = "^23.3.1"
pip = ">=23.3.1"
urllib3 = "^2.0.7"

[tool.poetry.extras]
Expand Down
4 changes: 2 additions & 2 deletions pysnc/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def get(self, name, value=None) -> bool:
self.query()
return self.next()

def insert(self) -> Optional[str]:
def insert(self) -> Optional[GlideElement]:
"""
Insert a new record.
Expand All @@ -591,7 +591,7 @@ def insert(self) -> Optional[str]:
rjson = response.json()
raise InsertException(rjson['error'] if 'error' in rjson else f"{code} response on insert -- expected 201", status_code=code)

def update(self) -> Optional[str]:
def update(self) -> Optional[GlideElement]:
"""
Update the current record.
Expand Down

0 comments on commit 39d6bcf

Please sign in to comment.