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

Add initial type specs #59

Merged
merged 9 commits into from Dec 1, 2021
Merged

Add initial type specs #59

merged 9 commits into from Dec 1, 2021

Conversation

princemaple
Copy link
Contributor

@princemaple princemaple commented Nov 26, 2021

Closes #57

lib/req.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated Show resolved Hide resolved
lib/req/response.ex Outdated Show resolved Hide resolved
princemaple and others added 5 commits December 1, 2021 20:50
Co-authored-by: Wojtek Mach <wojtekmach@users.noreply.github.com>
Co-authored-by: Wojtek Mach <wojtekmach@users.noreply.github.com>
Co-authored-by: Wojtek Mach <wojtekmach@users.noreply.github.com>
Co-authored-by: Wojtek Mach <wojtekmach@users.noreply.github.com>
@princemaple
Copy link
Contributor Author

All updated.

lib/req/response.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated
@@ -71,6 +77,7 @@ defmodule Req do
The `options` are merged with default options set with `default_options/1`.
"""
@doc api: :high_level
@spec request(method(), String.t(), keyword()) :: {:ok, Req.Response.t()} | {:error, Exception.t()}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@spec request(method(), String.t(), keyword()) :: {:ok, Req.Response.t()} | {:error, Exception.t()}
@spec request(method(), url(), keyword()) :: {:ok, Req.Response.t()} | {:error, Exception.t()}

lib/req.ex Outdated Show resolved Hide resolved
lib/req.ex Outdated Show resolved Hide resolved
@wojtekmach wojtekmach changed the title add initial type specs Add initial type specs Dec 1, 2021
@wojtekmach wojtekmach merged commit 7e36753 into wojtekmach:main Dec 1, 2021
@wojtekmach
Copy link
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

function typespecs
2 participants